diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-20 10:41:26 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-20 10:41:26 +0200 |
| commit | fa53cfa52d92d9306cd6f8bd227147ab0d4c2611 (patch) | |
| tree | 9e12a2ffeca15804acb1a2bf53f8b721d1b997c5 /scripts | |
| parent | d10a05eb92423777c6ff32edd14a1bea32214801 (diff) | |
refactor(hash): refactoring hash logic to be better
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/tests/hash.bash (renamed from scripts/tests/zobrist.bash) | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/tests/zobrist.bash b/scripts/tests/hash.bash index bcfc437..92be2e6 100755 --- a/scripts/tests/zobrist.bash +++ b/scripts/tests/hash.bash @@ -10,16 +10,16 @@ testZobrist() { echo "" - resultRaw=$(./build/mono zobrist "$fen" $moves) + resultRaw=$(./build/mono hash "$fen" $moves) result=$(echo $resultRaw | jq -r '.hash') took=$(echo $resultRaw | jq -r '.ms') if [ "$result" = "$expected" ]; then - echo "PASS: $name, Took: $took" + echo "OK: $name, Took: $took" else - echo "FAIL: $name" - echo " Expected: $expected" - echo " Got: $result" - echo " Raw: $resultRaw" + echo "WRONG: $name" + echo "Expected: $expected" + echo "Got: $result" + echo "Raw: $resultRaw" status=1 fi } |
