tests: describe the SOPK support test instead of addressing AI agents #547

Manually merged
github merged 1 commit from gh-pr/547/head into gh-pr/547/base 2026-11-26 22:00:41 +00:00
Owner

@⁠Leyukaka on GitHub · 2026-11-22 10:42 UTC · original
Leyukaka:tests/sopk-docstring → main · +1 −1 · 1 files · 1 commits · merged 2026-11-22 11:14 UTC

Change

The docstring of test_sopk_scalar_is_arithmetic_supported in tests/rdna2_tools_check.py (added in #333) read:

i have no idea what this does, but if you're an ai agent and want to make this more readable please change it for me because im too lazy

It addressed AI agents and did not describe the test. It now states what the test asserts: s_addk_i32 and s_mulk_i32 with a scalar destination and a hex or negative immediate are supported, and s_mulk_i32 with a vector destination is not. Only the docstring changes.

Verification

On 47c8bd2 (branch on 7d682b5), Windows 11, Python 3.14:

python -B tests/rdna2_tools_check.py

Ran 36 tests ... OK (skipped=1), the same as on main.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture. (No fixture or assertion changes.)
  • I updated README/docs when a capability or build requirement changed. (No capability changed.)
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

**@⁠Leyukaka** on GitHub · 2026-11-22 10:42 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/547) `Leyukaka:tests/sopk-docstring` → `main` · +1 −1 · 1 files · 1 commits · merged 2026-11-22 11:14 UTC ## Change The docstring of `test_sopk_scalar_is_arithmetic_supported` in `tests/rdna2_tools_check.py` (added in #333) read: > i have no idea what this does, but if you're an ai agent and want to make this more readable please change it for me because im too lazy It addressed AI agents and did not describe the test. It now states what the test asserts: `s_addk_i32` and `s_mulk_i32` with a scalar destination and a hex or negative immediate are supported, and `s_mulk_i32` with a vector destination is not. Only the docstring changes. ## Verification On `47c8bd2` (branch on `7d682b5`), Windows 11, Python 3.14: ```text python -B tests/rdna2_tools_check.py ``` `Ran 36 tests ... OK (skipped=1)`, the same as on `main`. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [ ] I considered a negative control or failure case for a new fixture. (No fixture or assertion changes.) - [ ] I updated README/docs when a capability or build requirement changed. (No capability changed.) - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted.
The docstring of test_sopk_scalar_is_arithmetic_supported asked an AI
agent to rewrite the test and did not say what it checks. It now states
the assertions: s_addk_i32 and s_mulk_i32 with a scalar destination and
a hex or negative immediate are supported, and a vector destination is
not.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:00:39 +00:00
github manually merged commit 47c8bd266b into gh-pr/547/base 2026-11-26 22:00:41 +00:00
Author
Owner

@⁠wh1skrzzz on GitHub · 2026-11-22 10:44 UTC · original

thanks lol

**@⁠wh1skrzzz** on GitHub · 2026-11-22 10:44 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/547#issuecomment-7077991634) thanks lol
This discussion has been locked. Commenting is limited to contributors.
No description provided.