Added parseStringArray() unit test with escaped strings
This commit is contained in:
parent
a3d5d992f6
commit
b65b76f2bd
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user