diff options
Diffstat (limited to 'Practical2/tester')
-rwxr-xr-x | Practical2/tester/test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Practical2/tester/test.sh b/Practical2/tester/test.sh index 693ceda..4a982ac 100755 --- a/Practical2/tester/test.sh +++ b/Practical2/tester/test.sh @@ -22,7 +22,7 @@ for tc in "$samples/"*.in; do result=$(eval "cat '$tc' | $cmd") time_end=$(($(date +%s%N)/1000000)) time=`expr $time_end - $time_start` - if [ $result != $answer ]; then + if [ "$result" != "$answer" ]; then echo "failure ($time ms)." failed=$(($failed+1)) else |