Skip to content

Commit 36e4fa6

Browse files
Bas950porsager
authored andcommitted
chore: add test
1 parent 26d08c8 commit 36e4fa6

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

cjs/tests/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ t('Array of Date', async() => {
137137
return [now.getTime(), (await sql`select ${ sql.array([now, now, now]) } as x`)[0].x[2].getTime()]
138138
})
139139

140+
t("Array of Box", async () => [
141+
'(3,4),(1,2);(6,7),(4,5)',
142+
(await sql`select ${ '{(1,2),(3,4);(4,5),(6,7)}' }::box[] as x`)[0].x.join(";")
143+
]);
144+
140145
t('Nested array n2', async() =>
141146
['4', (await sql`select ${ sql.array([[1, 2], [3, 4]]) } as x`)[0].x[1][1]]
142147
)

deno/tests/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ t('Array of Date', async() => {
139139
return [now.getTime(), (await sql`select ${ sql.array([now, now, now]) } as x`)[0].x[2].getTime()]
140140
})
141141

142+
t("Array of Box", async () => [
143+
'(3,4),(1,2);(6,7),(4,5)',
144+
(await sql`select ${ '{(1,2),(3,4);(4,5),(6,7)}' }::box[] as x`)[0].x.join(";")
145+
]);
146+
142147
t('Nested array n2', async() =>
143148
['4', (await sql`select ${ sql.array([[1, 2], [3, 4]]) } as x`)[0].x[1][1]]
144149
)

tests/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ t('Array of Date', async() => {
137137
return [now.getTime(), (await sql`select ${ sql.array([now, now, now]) } as x`)[0].x[2].getTime()]
138138
})
139139

140+
t("Array of Box", async () => [
141+
'(3,4),(1,2);(6,7),(4,5)',
142+
(await sql`select ${ '{(1,2),(3,4);(4,5),(6,7)}' }::box[] as x`)[0].x.join(";")
143+
]);
144+
140145
t('Nested array n2', async() =>
141146
['4', (await sql`select ${ sql.array([[1, 2], [3, 4]]) } as x`)[0].x[1][1]]
142147
)

0 commit comments

Comments
 (0)