Added parseStringArray() unit test with escaped strings

This commit is contained in:
Ahti Heinla 2011-11-30 02:54:01 +02:00
parent a3d5d992f6
commit b65b76f2bd

View File

@ -61,6 +61,12 @@ test("testing stringy array", function(){
assert.deepEqual(q.stringArrayParser(input), expected);
});
test("testing stringy array containing escaped strings", function(){
var input = '{"\\"\\"\\"","\\\\\\\\\\\\"}';
var expected = ['"""','\\\\\\'];
assert.deepEqual(q.stringArrayParser(input), expected);
});
test("testing NULL array", function(){
var input = '{NULL,NULL}';
var expected = [null,null];