aboutsummaryrefslogtreecommitdiff
path: root/Practical2/tester/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Practical2/tester/test.sh')
-rwxr-xr-xPractical2/tester/test.sh2
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