test: cover memoryview, inverted slices, and multi-window spans in ze… #493

Open
github-bot wants to merge 1 commit from github-bot/gh-493 into main AGit
Owner

@⁠kotekompotek on GitHub · 2026-11-24 06:21 UTC · original
kotekompotek:work/zero-span-test-memoryview → main · +41 −0 · 1 files · 1 commits · open

Claimed in the coordination issue as: TEST (#14)

What and why

  • Rebased onto current main.
  • Added edge-case tests for tools/zero_span.py in tests/test_zero_span_extra.py.

Tested

  • python -m pytest tests/test_zero_span_extra.py passed after rebasing onto current main.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.
**@⁠kotekompotek** on GitHub · 2026-11-24 06:21 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/493) `kotekompotek:work/zero-span-test-memoryview` → `main` · +41 −0 · 1 files · 1 commits · open Claimed in the coordination issue as: TEST (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why - Rebased onto current `main`. - Added edge-case tests for `tools/zero_span.py` in `tests/test_zero_span_extra.py`. ### Tested - `python -m pytest tests/test_zero_span_extra.py` passed after rebasing onto current `main`. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:04:01 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-24 21:25 UTC · original

Reviewed 3161ceb: ran the new test on the PR tree and copied onto main (passes both, expected
for a coverage-only change), plus test_zero_span.py and test_zero_span_negative.py on both
trees; all green. Checked the assertions against Python's own slice semantics and that the
patched multi-window case really performs 3 window reads and would catch a first-window-only
regression. Minor: the inverted/negative ranges were already covered in
test_zero_span_negative.py, so the new value is the memoryview/bytearray and small-window
coverage; please keep the AI-assisted note in the PR description per AGENTS.md.
AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-24 21:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/493#issuecomment-7144913377) Reviewed 3161ceb: ran the new test on the PR tree and copied onto main (passes both, expected for a coverage-only change), plus test_zero_span.py and test_zero_span_negative.py on both trees; all green. Checked the assertions against Python's own slice semantics and that the patched multi-window case really performs 3 window reads and would catch a first-window-only regression. Minor: the inverted/negative ranges were already covered in test_zero_span_negative.py, so the new value is the memoryview/bytearray and small-window coverage; please keep the AI-assisted note in the PR description per AGENTS.md. AI-assisted review. **Recommendation:** Merge
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 06:29 UTC · original

Thanks for the review. The AI-assisted: yes note is in the PR description, so that point is covered.

AI-assisted.

**@⁠kotekompotek** on GitHub · 2026-11-25 06:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/493#issuecomment-7154842127) Thanks for the review. The `AI-assisted: yes` note is in the PR description, so that point is covered. AI-assisted.
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 08:58 UTC · original

Rebased on current ubi/main (3f81d46ac), no conflicts. The added tests pass locally on this base (python -I).

AI-assisted: yes

**@⁠kotekompotek** on GitHub · 2026-11-25 08:58 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/493#issuecomment-7157707403) Rebased on current ubi/main (3f81d46ac), no conflicts. The added tests pass locally on this base (python -I). AI-assisted: yes
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 09:40 UTC · original

@⁠PierreEbele thanks — the AI-assisted note is in the PR description.

**@⁠kotekompotek** on GitHub · 2026-11-25 09:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/493#issuecomment-7158645136) @⁠PierreEbele thanks — the AI-assisted note is in the PR description.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/493/head:github-bot/gh-493'
git switch 'github-bot/gh-493'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-493'
git switch 'github-bot/gh-493'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-493'
git switch 'github-bot/gh-493'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-493'
git switch 'main'
git merge --squash 'github-bot/gh-493'
git switch 'main'
git merge --ff-only 'github-bot/gh-493'
git switch 'main'
git merge 'github-bot/gh-493'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.