mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
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…
x
Reference in New Issue
Block a user