upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorsanuk369 <224479491+quackottu@users.noreply.github.com>2026-11-22 11:39:13 +0530
committersanuk369 <224479491+quackottu@users.noreply.github.com>2026-11-22 11:39:13 +0530
commit186c93d64a300bfa7f33b7dde89b6e68f3b7fdfb (patch)
treeacd732e82074134234fab601ffd26f692b3fefff /runtime/src/main.cpp
parent43d470316ec6cbcd64002bc3792998d9f5745dac (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/src/main.cpp')
0 files changed, 0 insertions, 0 deletions