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

source-academy / py-slang / 29675068251
87%

Build:
DEFAULT BRANCH: main
Ran 19 Jul 2026 05:47AM UTC
Jobs 1
Files 104
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

19 Jul 2026 05:34AM UTC coverage: 86.906% (+0.04%) from 86.869%
29675068251

push

github

web-flow
fix: use Math.hypot for complex magnitude to avoid overflow (#286)

Computing a complex modulus as sqrt(re*re + im*im) overflows to
Infinity when a component's square leaves the float range, even
though the true modulus is representable (abs(complex(1e200, 0))
returned inf instead of 1e200). Math.hypot scales internally and is
what CPython itself uses for abs(complex).

Replace the sqrt-of-squares form at the three remaining sites — the
CSE machine's abs builtin, the PVML interpreter's abs, and
PyComplexNumber.pow's magnitude — aligning them with the stepper
engine (conductor/stepper), which already uses Math.hypot, and with
py2js since #282.

Add directed tests: abs(1e200+0j) through the shared CSE/Pynter/PVML
/CPython suites, and a PyComplexNumber.pow case whose intermediate
square overflows.

Fixes #284

3716 of 4596 branches covered (80.85%)

Branch coverage included in aggregate %.

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

18 existing lines in 1 file now uncovered.

8144 of 9051 relevant lines covered (89.98%)

159813.72 hits per line

Coverage Regressions

Lines Coverage ∆ File
18
90.05
0.0% src/engines/wasm/builderGenerator.ts
Jobs
ID Job ID Ran Files Coverage
1 29675068251.1 19 Jul 2026 05:47AM UTC 104
86.91
GitHub Action Run
Source Files on build 29675068251
  • Tree
  • List 104
  • Changed 5
  • Source Changed 5
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29675068251
  • 5a049ad5 on github
  • Prev Build on main (#29634557125)
  • Next Build on main (#29725861836)
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