Repository navigation
docs/first_light: the test has 48 cases, not twenty-five (DOC-FIRST-LIGHT-TEST-COUNT) - #912
Merged
Conversation
…IGHT-TEST-COUNT) The unittest loader counts 48 cases in tests/test_first_light.py, and the sentence on the old breakdown no longer matched. The breakdown is dropped. The pass/skip line now matches a real run: 48 tests, 44 passed, 4 skipped.
Contributor
|
Reviewed fc2d07a: docs-only change. Checked on main 3ff2a2a:
AI-assisted review. Recommendation: Merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: DOC-FIRST-LIGHT-TEST-COUNT (#14 (comment))
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 (a289278):
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).