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

source-academy / py-slang / 42641160364
88%

Build:
DEFAULT BRANCH: main
Ran 09 Nov 2026 03:22PM UTC
Jobs 1
Files 224
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

09 Nov 2026 03:05PM UTC coverage: 88.067% (+0.04%) from 88.024%
42641160364

push

github

web-flow
Implement math_nextafter (with steps) and math_ulp (#649)

* Implement math_nextafter (with steps) and math_ulp

Both threw "not implemented". They now follow CPython: one shared implementation on doubles
(src/stdlib/floatSteps.ts) serves the stdlib (CSE, py2js, WASM and the e-stepper) and the PVML
interpreter. math_nextafter takes an optional third argument, steps, as documented; the typed prelude
declares it, so the typed documentation no longer needs its special case.

Closes #648 for py-slang. pynter: source-academy/pynter#62.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* math_nextafter: reaching zero from below gives -0, as in CPython

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Skip the math_nextafter cases with steps in the CPython ground-truth checks

CPython takes steps as a keyword-only argument; this dialect has no keyword arguments, so it takes it
positionally, as documented.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* math_nextafter: zero steps return x even when y is NaN, as in CPython

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

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

7657 of 9164 branches covered (83.56%)

Branch coverage included in aggregate %.

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

2 existing lines in 2 files now uncovered.

15870 of 17551 relevant lines covered (90.42%)

252746.45 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
91.57
-0.4% src/engines/py2js/stdlibBridge.ts
1
85.05
-2.8% src/runner.ts
Jobs
ID Job ID Ran Files Coverage
1 42641160364.1 09 Nov 2026 03:22PM UTC 224
88.07
GitHub Action Run
Source Files on build 42641160364
  • Tree
  • List 224
  • Changed 7
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42641160364
  • b1fa7f17 on github
  • Prev Build on main (#42635397183)
  • Next Build on main (#42646646932)
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