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

moonbitlang / core / 5823
90%

Build:
DEFAULT BRANCH: main
Ran 07 Aug 2026 07:44AM UTC
Jobs 1
Files 463
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

07 Aug 2026 07:42AM UTC coverage: 90.324% (+0.001%) from 90.323%
5823

push

github

bobzhang
fix(json): parse big integer literals to correctly rounded doubles

lex_integer_end conflated "cannot be represented exactly in 2^53" with
"out of double range": once the exact-integer accumulator overflowed
SAFE_INTEGER_LIMIT it returned the Number(Infinity, repr=...) sentinel
immediately, without ever consulting strconv. The decimal/exponent path
already falls back to strconv for correct rounding, so the same value
parsed differently depending on spelling ("10000000000000000000" gave
Infinity while "1e19" gave 1.0e19).

On overflow, fall back to @internal/strconv.parse_double for the
correctly rounded value and keep the exact source text in repr, so
stringify remains lossless. The infinity sentinel now only applies to
literals strconv itself rejects (beyond double range), matching how
mainstream implementations behave (JS rounds; serde_json/Jackson/
Python keep exact or rounded values; nobody yields Infinity in range).

This makes the red tests from the previous commit pass, fixes Eq
collapsing all big-integer texts into one equivalence class, and lets
from_json : Double accept in-range values, while the existing
out-of-range sentinel tests keep passing unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

4 of 4 new or added lines in 1 file covered. (100.0%)

16234 of 17973 relevant lines covered (90.32%)

168743.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5823.1 07 Aug 2026 07:44AM UTC 464
90.34
GitHub Action Run
Source Files on build 5823
  • Tree
  • List 463
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9bcbc009 on github
  • Prev Build on main (#5819)
  • Next Build on main (#5827)
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