mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
added unit tests for the three array types
This commit is contained in:
parent
18e63f1e86
commit
30fce731ca
@ -165,6 +165,31 @@ test('typed results', function() {
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
name : 'array/char',
|
||||
format : 'text',
|
||||
dataTypeID: 1014,
|
||||
actual: '{asdf,asdf}',
|
||||
expected : function(val){
|
||||
assert.deepEqual(val, ['asdf','asdf']);
|
||||
}
|
||||
},{
|
||||
name : 'array/varchar',
|
||||
format : 'text',
|
||||
dataTypeID: 1015,
|
||||
actual: '{asdf,asdf}',
|
||||
expected :function(val){
|
||||
assert.deepEqual(val, ['asdf','asdf']);
|
||||
}
|
||||
},{
|
||||
name : 'array/text',
|
||||
format : 'text',
|
||||
dataTypeID: 1008,
|
||||
actual: '{"hello world"}',
|
||||
expected :function(val){
|
||||
assert.deepEqual(val, ['hello world']);
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
name: 'binary-string/varchar',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user