diff options
| author | sanuk369 <224479491+quackottu@users.noreply.github.com> | 2026-11-22 11:39:13 +0530 |
|---|---|---|
| committer | sanuk369 <224479491+quackottu@users.noreply.github.com> | 2026-11-22 11:39:13 +0530 |
| commit | 186c93d64a300bfa7f33b7dde89b6e68f3b7fdfb (patch) | |
| tree | acd732e82074134234fab601ffd26f692b3fefff /runtime/test/gameinput_test.cpp | |
| parent | 43d470316ec6cbcd64002bc3792998d9f5745dac (diff) | |
test_hashdict: pin the Latin-1 joaat value instead of comparing a string with itself
"café" and "caf\xe9" are the same Python string, so the Latin-1 check
compared one value with itself and could never fail: with hashdict.joaat
encoding ASCII instead of Latin-1, all 20 tests still passed. It now pins
joaat("caf\xe9") to 0xEEFBF723, the Latin-1 one-at-a-time hash computed
independently; the ASCII mutation fails it (0x2C6DF1F2).
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions