From dd4f969d156bbaa546911b3951211bb2245182ad Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 18 Aug 2026 14:02:01 +0200 Subject: fix(tests): making zobrist tests use json --- scripts/tests/zobrist.bash | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') 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 } -- cgit v1.2.3