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

Merged
TuroYT merged 1 commit from upstream-pr/916 into main 2026-11-25 21:25:01 +00:00
TuroYT commented 2026-11-24 15:10:39 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TuroYT on 2026-11-24T15:10:39Z.


Claimed in the coordination issue as: README-BUFFER-FORMAT-COUNT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135519530)

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).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5474838819 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/916). Originally posted by [TuroYT](https://github.com/TuroYT) on 2026-11-24T15:10:39Z. --- Claimed in the coordination issue as: README-BUFFER-FORMAT-COUNT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135519530) ## 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).
MoonEyes commented 2026-11-24 17:39:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-24T17:39:30Z.

Review: APPROVED


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6044344249 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/916#pullrequestreview-6044344249). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-24T17:39:30Z. **Review:** APPROVED --- 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).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!916
No description provided.