Commits

Anonymous committed abc3902

Typo in tests fixed. Argument variable quoted

Comments (0)

Files changed (1)

 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
 	fi
 }
 
+
 #
 # TEST SET: Basic types (simple values)
 #
 expect 'boolVar' 'true' << JSON_END
-"boolVal" : true
+"boolVar" : true
 JSON_END
 
 expect 'boolVar' 'false'<< JSON_END