mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:45:53 +01:00
[PR #298] [CLOSED] test(hw_oracle): unit tests for tools/hw_oracle/tsharp.py #351
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#351
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/298
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/10030📝 Commits (1)
ec8d110test(hw_oracle): unit tests for tools/hw_oracle/tsharp.py📊 Changes
1 file changed (+233 additions, -0 deletions)
View changed files
➕
tests/test_hw_oracle_tsharp.py(+233 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116997647
What and why
Adds standalone
stdlib-onlyunit tests (tests/test_hw_oracle_tsharp.py) fortools/hw_oracle/tsharp.py(CPU-only, no GPU required).check_arch,has_custom_pitch, 256-bytepitch_texelsalignment, GFX10 vs GFX11 8-dwordimage_wordsbitfields (includinggfx1010zero word4,1x1and16384x16384PITCH_MSBboundaries, all format codes per family, and validation errors).lay_out0xcdrow padding,lanes,_longspacking/wrapping, andkernel_linesgeneration (dmask, multi-iteration, power-of-two checks), plus bitfield-corruption negative controls.Tested
AI-assisted.
Ran on Windows 11 (Python 3.12.10, stdlib-only):
python -I tests/test_hw_oracle_tsharp.py -v->Ran 13 tests in 0.001s — OKpython -I -m compileall -q make_game.py tools tests-> exit code 0Checklist
tools/rdna2spirv.py).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.