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

source-academy / frontend / 35619613890
46%

Build:
DEFAULT BRANCH: master
Ran 21 Sep 2026 03:35PM UTC
Jobs 1
Files 475
Run time 2min
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 03:32PM UTC coverage: 45.994% (+0.07%) from 45.922%
35619613890

push

github

web-flow
Bump language-directory to 0.0.26, and make the default program swap (#4402)

Two halves of one bug: switching from Python to Source left Python's
`# Type your program in here!` sitting in a JavaScript editor.

1. Source had no defaultProgram at all, so the swap never fired for it.
   Fixed in language-directory#63 and picked up by this bump to 0.0.26.

2. The guard only replaced the editor when it held the *pristine*
   defaultEditorValue:

     if (editorValue === defaultEditorValue)

   so the swap was one-shot. The first switch replaced that value with,
   say, Python's comment, and every later switch then failed the
   comparison and silently kept the previous language's text. The bump
   alone therefore fixed nothing — verified in the browser before and
   after.

An untouched default now means the pristine value *or* any language's
own defaultProgram, so switching works every time while still never
clobbering code the student has written.

Verified in the browser end to end, on a cleared localStorage: Python §1
shows `#`, switching to Source §1 gives `//`, and switching back gives
`#` again — the round trip the old guard could not do.

Mutation-verified: restoring the old comparison fails the new test.

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

3193 of 7902 branches covered (40.41%)

Branch coverage included in aggregate %.

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

7197 of 14688 relevant lines covered (49.0%)

31.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35619613890.1 21 Sep 2026 03:35PM UTC 475
45.99
GitHub Action Run
Source Files on build 35619613890
  • Tree
  • List 475
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 08203c0c on github
  • Prev Build on master (#35613842754)
  • Next Build on master (#35699500511)
  • Delete
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