tests/semantic/README: test_buffer_formats_all covers 45 formats (README-BUFFER-FORMAT-COUNT) #916

Manually merged
github merged 1 commit from gh-pr/916/head into gh-pr/916/base 2026-11-26 09:28:09 +00:00
Owner

@⁠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 UTC

Claimed in the coordination issue as: README-BUFFER-FORMAT-COUNT (#14)

What was wrong

tests/semantic/README.md:67 says test_buffer_formats_all.py runs its loads and stores "of the 33 formats". The ADDED tuple in tests/semantic/test_buffer_formats_all.py (line 33) has 45 entries. The loops over ADDED (lines 118, 139, 144, 151) and the test_loads_* and test_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" printed of the 33 formats
  • an ast count of the ADDED assignment printed [45]

What changed

33 becomes 45 in that sentence. Nothing else.

Not changed: the same paragraph says two older-format stores are "pinned as expected failures". test_buffer_formats_all.py has no expectedFailure, 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" prints of the 45 formats
  • the ast count of ADDED prints [45]
  • python3 -I tests/test_text_write_line_endings.py: Ran 3 tests, OK
  • python3 -I scripts/check_no_game_data.py tests/semantic/README.md: exit 0
  • git diff --check: clean
  • standalone tests that scan every Markdown file: tests/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 OK

Not tested

  • The translator test file itself was not run. The change is one number in a Markdown file, and the count comes from the ast check above.
  • No GPU, LLVM or game files were involved.

AI-assisted (Claude Code).

**@⁠TuroYT** on GitHub · 2026-11-24 15:10 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/916) `TuroYT:docs/semantic-readme-format-count` → `main` · +1 −1 · 1 files · 1 commits · merged 2026-11-25 21:25 UTC Claimed in the coordination issue as: README-BUFFER-FORMAT-COUNT (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ## What was wrong `tests/semantic/README.md:67` says `test_buffer_formats_all.py` runs its loads and stores "of the 33 formats". The `ADDED` tuple in `tests/semantic/test_buffer_formats_all.py` (line 33) has 45 entries. The loops over `ADDED` (lines 118, 139, 144, 151) and the `test_loads_*` and `test_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"` printed `of the 33 formats` - an `ast` count of the `ADDED` assignment printed `[45]` ## What changed `33` becomes `45` in that sentence. Nothing else. Not changed: the same paragraph says two older-format stores are "pinned as expected failures". `test_buffer_formats_all.py` has no `expectedFailure`, 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"` prints `of the 45 formats` - the `ast` count of `ADDED` prints `[45]` - `python3 -I tests/test_text_write_line_endings.py`: Ran 3 tests, OK - `python3 -I scripts/check_no_game_data.py tests/semantic/README.md`: exit 0 - `git diff --check`: clean - standalone tests that scan every Markdown file: `tests/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 OK ## Not tested - The translator test file itself was not run. The change is one number in a Markdown file, and the count comes from the `ast` check above. - No GPU, LLVM or game files were involved. AI-assisted (Claude Code).
The README said the test runs 33 formats. The ADDED table in
test_buffer_formats_all.py has 45 entries (counted with ast), and the
load and store loops iterate all of it. Only the number changes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:28:08 +00:00
github manually merged commit 48f1c95f13 into gh-pr/916/base 2026-11-26 09:28:09 +00:00
Author
Owner

@⁠MoonEyes on GitHub · 2026-11-24 17:39 UTC · original · approved these changes

LGTM. Checked on main cf4c00cba:

  • tests/semantic/README.md:67 says "of the 33 formats".
  • An ast count of ADDED in tests/semantic/test_buffer_formats_all.py:33 gives 45 entries.
  • The load and store loops iterate 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).

**@⁠MoonEyes** on GitHub · 2026-11-24 17:39 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/916#pullrequestreview-6044344249) · **approved these changes** LGTM. Checked on main cf4c00cba: - `tests/semantic/README.md:67` says "of the 33 formats". - An `ast` count of `ADDED` in `tests/semantic/test_buffer_formats_all.py:33` gives 45 entries. - The load and store loops iterate `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).
This discussion has been locked. Commenting is limited to contributors.
No description provided.