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

moonbitlang / core / 3151
96%

Build:
DEFAULT BRANCH: main
Ran 23 Mar 2026 09:43AM UTC
Jobs 1
Files 320
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

23 Mar 2026 09:42AM UTC coverage: 95.721%. Remained the same
3151

push

github

bobzhang
fix(list): fix scan_left evaluating callback twice per element

scan_left was calling f(acc, x) twice per iteration - once to store
the result in the new list node and again to compute the next
accumulator. This is a correctness bug for effectful or
non-deterministic callbacks, and doubles work for pure callbacks.

Fix: compute f(acc, x) once and reuse the result for both purposes.

Also fix the empty-list minimum() test to actually assert None
instead of ignoring the result (matching the maximum() test pattern).

Add regression test that verifies f is called exactly once per element.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

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

13825 of 14443 relevant lines covered (95.72%)

176004.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3151.1 23 Mar 2026 09:43AM UTC 321
95.73
GitHub Action Run
Source Files on build 3151
  • Tree
  • List 320
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0c57a6b0 on github
  • Prev Build on main (#3149)
  • Next Build on main (#3154)
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