Skip to content

Commit 0f068f7

Browse files
committed
Add test case for avg of empty list
Ensure you don't hit divide by zero errors.
1 parent 7e58218 commit 0f068f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/functions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@
8383
"expression": "avg(strings)",
8484
"error": "invalid-type"
8585
},
86+
{
87+
"expression": "avg(empty_list)",
88+
"result": null
89+
},
8690
{
8791
"expression": "ceil(`1.2`)",
8892
"result": 2

0 commit comments

Comments
 (0)