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

apache / commons-numbers / 527
100%

Build:
DEFAULT BRANCH: master
Ran 21 Apr 2020 09:29PM UTC
Jobs 1
Files 53
Run time 2min
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
527

push

travis-ci

aherbert
NUMBERS-147: Fix conversion from double to support 2^31

The value 2^31 can be in the numerator or denominator. Previously the
conversion from double supported up to Integer.MAX_VALUE which is
2^31-1.

Adds common test cases for conversion from double with a max
denominator.

Changed the conversion from a double to use the absolute value and
restore the sign at the end. The conversion is thus identical for
positive or negative values.

Throw an illegal argument exception if maxDenominator is zero. A zero
invalidates the conversion from a double with a restricted denominator.

Replace Math.abs with compareUnsigned. This is appropriate as the fraction p/q is
always positive.

Add test cases for overflow double conversions.

Fix the fall-back to always use p1/q1 when either p2 or q2 overflow.

Move the default max iterations to a constant.

Validate epsilon and max iterations are positive.

76 of 76 new or added lines in 2 files covered. (100.0%)

2701 of 2711 relevant lines covered (99.63%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 527.1 21 Apr 2020 09:29PM UTC 0
99.63
Travis Job 527.1
Source Files on build 527
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #527
  • ae6a5e39 on github
  • Prev Build on master (#523)
  • Next Build on master (#530)
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