Skip to content

Commit 28e9c03

Browse files
committed
update test for n generalized overload
1 parent 8038efc commit 28e9c03

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

test/src/databases/duckdb/duckdb.spec.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,21 @@ describe.each(allDucks.runtimeList)('duckdb:%s', (dbName, runtime) => {
145145
m2 is arg_min(x, y)
146146
m3 is arg_max(y, x)
147147
m4 is arg_max(x, y)
148+
m5 is arg_min(y, x, 2)
149+
m6 is arg_min(x, y, 1)
150+
m7 is arg_max(y, x, 3)
151+
m8 is arg_max(x, y, 2)
148152
}`
149-
).malloyResultMatches(runtime, {m1: 100, m2: 55, m3: 1, m4: 1});
153+
).malloyResultMatches(runtime, {
154+
m1: 100,
155+
m2: 55,
156+
m3: 1,
157+
m4: 1,
158+
m5: [100, 50],
159+
m6: [55],
160+
m7: [1, 50, 100],
161+
m8: [1, 22],
162+
});
150163
});
151164

152165
describe('time oddities', () => {

0 commit comments

Comments
 (0)