docs/first_light: the test has 48 cases, not twenty-five (DOC-FIRST-LIGHT-TEST-COUNT) #912
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!912
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/912/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TuroYT on GitHub · 2026-11-24 15:09 UTC · original
TuroYT:docs/first-light-48-cases→main· +3 −5 · 1 files · 1 commits · merged 2026-11-25 21:26 UTCClaimed in the coordination issue as: DOC-FIRST-LIGHT-TEST-COUNT (#14)
What was wrong
docs/first_light.md:73says "The test has twenty-five cases" and then lists groups that do not match the file.docs/first_light.md:141says the default run "runs 46 tests: 42 passed, 4 skipped". A real run gives 48 tests, 44 passed, 4 skipped.Reproduction on origin/main (
a28927849):grep -n "twenty-five" docs/first_light.mdprints line 73.grep -c 'def test_' tests/test_first_light.pyprints 48.python3 -I tests/test_first_light.pyprintsRan 48 testsandOK (skipped=4).What changed
python -I tests/test_first_light.py -v. The breakdown is removed. I could not tie every group to a class with certainty, so the sentence states only the total.LEONIDA_FIRST_LIGHT_DIRis set. The line was changed because the run above proves it stale. No other number changed.Overlap check: PRs #33, #35 and #801 change
docs/first_light.mdat line 203 (section 8). PR #100 changes it at line 26. None of them touch lines 73 or 141-147.Tested
python3 -I -c "...loadTestsFromModule(m).countTestCases()"(loader): 48python3 -I tests/test_first_light.py:Ran 48 tests in 0.070s,OK (skipped=4)python3 -I tests/test_text_write_line_endings.py: OKpython3 -I scripts/check_no_game_data.py docs/first_light.md: exit 0git diff --check: cleangit grep -l 'first_light.md' -- tests/ scripts/: no file reads the doc, so no other standalone test needs a runNot tested
LEONIDA_FIRST_LIGHT_DIRset). They need game files, which this change does not use. The 4 skipped cases were not run.AI-assisted (Claude Code).
@PierreEbele on GitHub · 2026-11-25 02:34 UTC · original
Reviewed
fc2d07a1: docs-only change.docs/first_light.mdnow matchestests/test_first_light.py.Checked on main
3ff2a2ad:python3 -I tests/test_first_light.pyin a sandbox with noLEONIDA_FIRST_LIGHT_DIRran 48 tests: 44 passed, 4 skipped. That is exactly the new "48 tests: 44 passed, 4 skipped", and the file has 48def test_methods.-vprints each one" means the list can no longer fall out of date. Only the count still needs updating when tests are added.AI-assisted review.
Recommendation: Merge