Permalink
Browse files

made invalid test more verbose

  • Loading branch information...
1 parent 1ad56e8 commit 39d3385c3f28c28c992d2822580e33c63564b436 @dominictarr committed Oct 26, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/invalid-test.sh
View
@@ -11,17 +11,17 @@ echo "1..$tests"
for input in invalid/*
do
let i+=1
- if ../bin/json_parse < "$input" > outlog 2> errlog
+ if ../JSON.sh < "$input" > /tmp/JSON.sh_outlog 2> /tmp/JSON.sh_errlog
then
- echo "not ok $i - cat $input | ../bin/json_parse should fail"
+ echo "not ok $i - cat $input | ../JSON.sh should fail"
#this should be indented with '#' at the start.
echo "OUTPUT WAS >>>"
- cat outlog
+ cat /tmp/JSON.sh_outlog
echo "<<<"
let fails=$fails+1
else
echo "ok $i - $input was rejected"
-
+ echo "#" `cat /tmp/JSON.sh_errlog`
fi
done
echo "$fails test(s) failed"

0 comments on commit 39d3385

Please sign in to comment.