[PR #916] [MERGED] tests/semantic/README: test_buffer_formats_all covers 45 formats (README-BUFFER-FORMAT-COUNT) #954

Closed
opened 2026-11-26 20:19:36 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/916
Author: @TuroYT
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @Andretuta

Base: main ← Head: docs/semantic-readme-format-count


📝 Commits (1)

  • 48f1c95 tests/semantic/README: test_buffer_formats_all covers 45 formats (README-BUFFER-FORMAT-COUNT)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 tests/semantic/README.md (+1 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/916 **Author:** [@TuroYT](https://github.com/TuroYT) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@Andretuta](https://github.com/Andretuta) **Base:** `main` ← **Head:** `docs/semantic-readme-format-count` --- ### 📝 Commits (1) - [`48f1c95`](https://github.com/ubiquitarianism/leonida/commit/48f1c95f13cae40da6e15ac3f32c7f1085f8e9e4) tests/semantic/README: test_buffer_formats_all covers 45 formats (README-BUFFER-FORMAT-COUNT) ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/semantic/README.md` (+1 -1) </details> ### 📄 Description 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:36 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#954
No description provided.