diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/tests/zobrist.bash | 7 |
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 } |
