Skip to content

Commit b65b76f

Browse files
committed
Added parseStringArray() unit test with escaped strings
1 parent a3d5d99 commit b65b76f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/unit/client/query-tests.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ test("testing stringy array", function(){
6161
assert.deepEqual(q.stringArrayParser(input), expected);
6262
});
6363

64+
test("testing stringy array containing escaped strings", function(){
65+
var input = '{"\\"\\"\\"","\\\\\\\\\\\\"}';
66+
var expected = ['"""','\\\\\\'];
67+
assert.deepEqual(q.stringArrayParser(input), expected);
68+
});
69+
6470
test("testing NULL array", function(){
6571
var input = '{NULL,NULL}';
6672
var expected = [null,null];

0 commit comments

Comments
 (0)