docs/first_light: the test has 48 cases, not twenty-five (DOC-FIRST-LIGHT-TEST-COUNT) #912
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/912"
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?
Imported from ubiquitarianism/leonida. Originally posted by TuroYT on 2026-11-24T15:09:47Z.
Claimed in the coordination issue as: DOC-FIRST-LIGHT-TEST-COUNT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135533644)
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).
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T02:34:17Z.
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