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

shoes / shoes4 / 2760 / 5
90%
master: %

Build:
Build:
LAST BUILD BRANCH: simple_calc_fix
DEFAULT BRANCH: master
Ran 04 Aug 2018 06:59AM UTC
Files 141
Run time 9s
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

04 Aug 2018 06:59AM UTC coverage: 90.225%. First build
jruby-9.1.1.0

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

Source Files on job 2760.5 (jruby-9.1.1.0)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2633
  • Travis Job 2760.5
  • b715e76e on github
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