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

source-academy / py-slang / 35627324494
88%

Build:
DEFAULT BRANCH: main
Ran 21 Sep 2026 04:54PM UTC
Jobs 1
Files 139
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

21 Sep 2026 04:42PM UTC coverage: 85.734%. Remained the same
35627324494

push

github

web-flow
fix(conductor): accumulate folds right-to-left, element first (#474)

`GenericDataHandler.accumulate` folded left-to-right and passed
`[acc, element]`. Conductor's own reference implementation
(conductor/src/conductor/stdlib/list/accumulate.ts) folds right-to-left and
passes `[element, acc]` — "the first application will be on the last element
of the list and the given initial value" — as do SICP's `accumulate` and
Source's.

This matters because the module bundles are shared between languages. The
same `rune`/`sound`/`midi` build serves Python and Source, so a bundle that
accumulates into a list, a difference, or anything else non-commutative got
one answer when called from Python and another when called from Source.

A commutative, associative operator cannot tell the two implementations
apart, which is how this survived: the existing test folded `add` over
[1, 2, 3] and asserted 6, which holds under every reading of accumulate. Its
title even said "left-to-right". Retitled it, and added a test using a
deliberately non-commutative operator, which is the only kind that can
distinguish the two — it is the single test that fails without this fix.

`accumulate` has no callers inside py-slang; it is reachable only by a
module through IDataHandler, so the blast radius is entirely module-side.

Closes #473

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

4893 of 6137 branches covered (79.73%)

Branch coverage included in aggregate %.

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

10943 of 12334 relevant lines covered (88.72%)

166375.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35627324494.1 21 Sep 2026 04:54PM UTC 139
85.73
GitHub Action Run
Source Files on build 35627324494
  • Tree
  • List 139
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #35627324494
  • 88641180 on github
  • Prev Build on main (#35589664920)
  • Next Build on main (#36323013500)
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