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

moonbitlang / core / 6238
91%

Build:
DEFAULT BRANCH: main
Ran 20 Aug 2026 09:24AM UTC
Jobs 1
Files 445
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

20 Aug 2026 09:20AM UTC coverage: 90.734%. Remained the same
6238

push

github

web-flow
fix(bigint): treat empty octets as zero in BigInt::from_octets (#4115)

An empty big-endian magnitude naturally denotes zero, and mainstream
bigint APIs agree: Java's BigInteger(signum, magnitude) permits a
zero-length magnitude for any signum, Python's int.from_bytes(b"")
returns 0, and Rust's num-bigint normalizes Sign::Minus with an empty
magnitude to zero. Previously MoonBit was the outlier, aborting with
"empty octet string" whenever signum != 0, while still accepting the
morally identical all-zero magnitude (e.g. b"\x00" with signum=-1).

Relax the panic on both backends to return zero, update the docs, and
replace the panic tests (bigint and builtin) with value tests covering
every signum.

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

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

16304 of 17969 relevant lines covered (90.73%)

331625.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6238.1 20 Aug 2026 09:24AM UTC 446
90.75
GitHub Action Run
Source Files on build 6238
  • Tree
  • List 445
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • dc17f50e on github
  • Prev Build on main (#6236)
  • Next Build on main (#6241)
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