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

source-academy / py-slang / 31726053645
86%

Build:
DEFAULT BRANCH: main
Ran 13 Aug 2026 05:45PM 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

13 Aug 2026 05:30PM UTC coverage: 85.592% (+0.1%) from 85.483%
31726053645

push

github

web-flow
Py2JS/Stepper: unify the predicate-type-error message for if/elif and ternary (#440)

Martin flagged that the two messages introduced in #439 ("if condition must
be bool, not 'int'" and "conditional expression condition must be bool, not
'int'") read like two different checks instead of one shared rule, and don't
match the style of an ordinary operand-type error (e.g. "unsupported operand
type(s) for -: 'int' and 'str'").

Both constructs now share one message: "predicate type must be 'bool', not
'<type>'" - "predicate" being SICP's term for the condition in both an if
statement and a conditional expression.

- py2js: condBool no longer takes a `where` parameter (the message no longer
  varies by construct), so its two Ternary call sites and its If call site in
  compiler.ts are simplified accordingly.
- stepper: contractConditional and the IfStatement case in reduce.ts now
  throw the same unified message.


Claude-Session: https://claude.ai/code/session_01CbR13vUwRM71FdD4zoiDuY

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

4826 of 6064 branches covered (79.58%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 2 files covered. (100.0%)

38 existing lines in 5 files now uncovered.

10804 of 12197 relevant lines covered (88.58%)

161944.14 hits per line

Coverage Regressions

Lines Coverage ∆ File
14
89.66
0.0% src/engines/wasm/builderGenerator.ts
12
86.3
-0.35% src/engines/py2js/runtime.ts
8
94.72
-0.18% src/conductor/stepper/reduce.ts
3
90.55
0.91% src/engines/py2js/compiler.ts
1
95.86
3.85% src/conductor/stepper/ast.ts
Jobs
ID Job ID Ran Files Coverage
1 31726053645.1 13 Aug 2026 05:45PM UTC 139
85.59
GitHub Action Run
Source Files on build 31726053645
  • Tree
  • List 139
  • Changed 7
  • Source Changed 6
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31726053645
  • bf258b40 on github
  • Prev Build on main (#31434140875)
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