test(victory-formats): pin the XMA Pro Huffman/level tables' invariants #615
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!615
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-611"
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?
@AnastasisKon on GitHub · 2026-11-28 13:21 UTC · original
AnastasisKon:vibe/xma-tables-tests-1705ac→main· +52 −0 · 1 files · 1 commits · openTest-only change:
crates/victory-formats/src/xma/tables.rsheld 16 constant tables (Huffman pairs, code lengths, run/level tables) with no tests.What the tests pin
SCALE,SCALE_RL,COEF1,VEC2,VEC1, plusCOEF0_SYMS/COEF0_LENSandVEC4_SYMS/VEC4_LENSzipped the wayxma.rsconsumes them — is a complete prefix code: walking the entries in code order with the same assignmentxma::Vlc::newmakes (code += 1 << (32 - len)) keeps every code in 32 bits, ends exactly at1 << 32, has unique symbols and lengths in 1..=32.CRITICAL_FREQis strictly increasing.Testing
cargo test -p victory-formats --lib xma::tables— 3 passcargo test -p victory-formats -p victory-hle -p victory -p victory-gpu -p xtask(host arm64) — all passcargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings— cleancargo xtask policy— 404 files okChecklist
vibe/xma-tables-tests-1705acfromupstream/main, pushed to my fork onlyView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.