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

stillwater-sc / universal / 42085067149
89%
master: 84%

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 05 Nov 2026 06:51PM UTC
Jobs 1
Files 839
Run time 1min
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

05 Nov 2026 06:31PM UTC coverage: 88.604% (+0.02%) from 88.581%
42085067149

push

github

web-flow
fix(rational): read rationals from a stream (#1934)

rational's operator>> never worked: the class declared a friend
operator>>(std::istream&, rational&) that nothing defined, so reading one
failed to link, and the only definition took a const rational& and read a
member rational does not have.

operator>> now reads a token through a new parse(txt, r) in
manipulators.hpp:
- It accepts an integer, n/d, or a decimal with an optional exponent,
  with an optional sign.
- The result is exact or the parse fails. On failure it sets failbit and
  leaves the target unchanged.
- It is built from the public arithmetic only, so it serves base2, base8,
  base10 and base16.

Every step is checked against wraparound, including a wrap to a negative
value that an undo-and-compare check misses: in 8 bits 12*10 + 8 is -128,
and -128 - 8 wraps back to 120. Powers of ten are divided out one at a
time, so -0.125 reduces to 1/8 in rational<8>.

New test static/rational/binary/conversion/stream_input.cpp covers:
- a token table for all four bases;
- range limits;
- every integer to past each type's range, with both signs;
- several tokens from one stream;
- an exhaustive n/d round trip.
integration/noexceptions now requires rational's stream input to work.

Resolves #1929

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

93 of 93 new or added lines in 3 files covered. (100.0%)

1 existing line in 1 file now uncovered.

56868 of 64182 relevant lines covered (88.6%)

8955522.05 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
97.79
-0.06% include/sw/universal/number/cfloat/cfloat_impl.hpp
Jobs
ID Job ID Ran Files Coverage
1 42085067149.1 05 Nov 2026 06:51PM UTC 839
88.6
GitHub Action Run
Source Files on build 42085067149
  • Tree
  • List 839
  • Changed 7
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42085067149
  • 13ab60ee on github
  • Prev Build on main (#42072725949)
  • Next Build on main (#42088259479)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc