From 99247345750f32468ce163e3c8a0ac39b52c65f0 Mon Sep 17 00:00:00 2001 From: Serge Zaitsev Date: Sun, 26 Dec 2010 13:02:40 +0200 Subject: [PATCH] Typo in tests fixed. Argument variable quoted --- test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index 7350222..4db4365 100644 --- a/test.sh +++ b/test.sh @@ -21,7 +21,7 @@ PASSED=0 FAILED=0 function expect() { - ret=$(./jsmn_demo -t 10 -b 256 - | grep -A 1 $1 | tail -n 1 | cut -c 15-) + ret=$(./jsmn_demo -t 10 -b 256 - | grep -A 1 "$1" | tail -n 1 | cut -c 15-) if [ "x$ret" = "x$2" ]; then PASSED=$(($PASSED+1)) else @@ -30,11 +30,12 @@ function expect() { fi } + # # TEST SET: Basic types (simple values) # expect 'boolVar' 'true' << JSON_END -"boolVal" : true +"boolVar" : true JSON_END expect 'boolVar' 'false'<< JSON_END