tests/semantic/README: test_buffer_formats_all covers 45 formats (README-BUFFER-FORMAT-COUNT) #916
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!916
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/916/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:10 UTC · original
TuroYT:docs/semantic-readme-format-count→main· +1 −1 · 1 files · 1 commits · merged 2026-11-25 21:25 UTCClaimed in the coordination issue as: README-BUFFER-FORMAT-COUNT (#14)
What was wrong
tests/semantic/README.md:67saystest_buffer_formats_all.pyruns its loads and stores "of the 33 formats". TheADDEDtuple intests/semantic/test_buffer_formats_all.py(line 33) has 45 entries. The loops overADDED(lines 118, 139, 144, 151) and thetest_loads_*andtest_stores_*methods iterate all of it, so 45 is the number the test runs.Reproduction on
main(a28927849):sed -n 67p tests/semantic/README.md | grep -o "of the [0-9]* formats"printedof the 33 formatsastcount of theADDEDassignment printed[45]What changed
33becomes45in that sentence. Nothing else.Not changed: the same paragraph says two older-format stores are "pinned as expected failures".
test_buffer_formats_all.pyhas noexpectedFailure, and its docstring at line 228 says those stores now follow the hardware. That sentence needs a separate fix.Other open pull requests on this file: #762 edits line 176, #165 and #103 edit lines 2 to 10. None touches line 67. PR #880 edits the import block of the test file, not
ADDED.Tested
sed -n 67p tests/semantic/README.md | grep -o "of the [0-9]* formats"printsof the 45 formatsastcount ofADDEDprints[45]python3 -I tests/test_text_write_line_endings.py: Ran 3 tests, OKpython3 -I scripts/check_no_game_data.py tests/semantic/README.md: exit 0git diff --check: cleantests/test_docs_links.py(16 tests),tests/test_docs_encoding.py(1),tests/test_docs_table_rows.py(2),tests/test_docs_env_vars.py(4),tests/test_docs_design_rows.py(5): all OKNot tested
astcheck above.AI-assisted (Claude Code).
@MoonEyes on GitHub · 2026-11-24 17:39 UTC · original · approved these changes
LGTM. Checked on main
cf4c00cba:tests/semantic/README.md:67says "of the 33 formats".astcount ofADDEDintests/semantic/test_buffer_formats_all.py:33gives 45 entries.ADDED(lines 139, 144, 151; line 118 checks each code is in the format table), so 45 is what the load/store tests cover.scripts/run_semantic_tests.py tests/semantic -p test_buffer_formats_all.py: 16 tests, 0 files failed (Windows 11, Python 3.14).AI-assisted: yes (Claude Code ran the checks; I read them).