aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-08-18 14:02:01 +0200
committerAdam <adammegarules1@gmail.com>2026-08-18 14:02:01 +0200
commitdd4f969d156bbaa546911b3951211bb2245182ad (patch)
tree96db81b57721b936bebeafcaab24b84356553904 /scripts
parent2dbcd83cdb015485e20f54967d88d0dbb9cd2c44 (diff)
fix(tests): making zobrist tests use json
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tests/zobrist.bash7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/tests/zobrist.bash b/scripts/tests/zobrist.bash
index 7545f6d..bcfc437 100755
--- a/scripts/tests/zobrist.bash
+++ b/scripts/tests/zobrist.bash
@@ -10,13 +10,16 @@ testZobrist() {
echo ""
- result=$(./build/mono zobrist "$fen" $moves)
+ resultRaw=$(./build/mono zobrist "$fen" $moves)
+ result=$(echo $resultRaw | jq -r '.hash')
+ took=$(echo $resultRaw | jq -r '.ms')
if [ "$result" = "$expected" ]; then
- echo "PASS: $name"
+ echo "PASS: $name, Took: $took"
else
echo "FAIL: $name"
echo " Expected: $expected"
echo " Got: $result"
+ echo " Raw: $resultRaw"
status=1
fi
}