Skip to content

Commit 30fce73

Browse files
committed
added unit tests for the three array types
1 parent 18e63f1 commit 30fce73

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test/unit/client/typed-query-results-tests.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,31 @@ test('typed results', function() {
165165
}
166166
},
167167

168+
{
169+
name : 'array/char',
170+
format : 'text',
171+
dataTypeID: 1014,
172+
actual: '{asdf,asdf}',
173+
expected : function(val){
174+
assert.deepEqual(val, ['asdf','asdf']);
175+
}
176+
},{
177+
name : 'array/varchar',
178+
format : 'text',
179+
dataTypeID: 1015,
180+
actual: '{asdf,asdf}',
181+
expected :function(val){
182+
assert.deepEqual(val, ['asdf','asdf']);
183+
}
184+
},{
185+
name : 'array/text',
186+
format : 'text',
187+
dataTypeID: 1008,
188+
actual: '{"hello world"}',
189+
expected :function(val){
190+
assert.deepEqual(val, ['hello world']);
191+
}
192+
},
168193

169194
{
170195
name: 'binary-string/varchar',

0 commit comments

Comments
 (0)