• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

shoes / shoes4 / 2760
90%
master: %

Build:
Build:
LAST BUILD BRANCH: simple_calc_fix
DEFAULT BRANCH: master
Ran 04 Aug 2018 06:59AM UTC
Jobs 1
Files 141
Run time 10s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2760

Pull #1244

travis-ci

Wayne Vucenic
Fix several calculator issues

In any physical, real-world calculator I can recall using, if I wanted to compute 2+2 and 3+3 I would click the following buttons:

2 + 2 = 3 + 3 =

But if I do that in this program,

2 + 2 =

shows "4", as expected, but then clicking 3 changes the display to "43".

I appreciate that the sample is intended as an example of using Shoes, not an example of how to write calculator logic.  But this problem makes it hard to actually use the calculator.

Another fix is that on most calculators, doing:

1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 =

shows the running total every time + is clicked.  This program did not display any result until = was clicked.

Renamed several instance variable to be more precise.

Corrected 4 RuboCop issues.
Pull Request #1244: Fix several issues in simple-calc-2 sample

403 of 552 branches covered (73.01%)

1966 of 2179 relevant lines covered (90.22%)

73.96 hits per line

Jobs
ID Job ID Ran Files Coverage
5 2760.5 (jruby-9.1.1.0) 04 Aug 2018 06:59AM UTC 0
90.22
Travis Job 2760.5
Source Files on build 2760
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2760
  • Pull Request #1244
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc