Skip to content

Commit 66c5260

Browse files
author
dengsgo
committed
增加 max() min() test case
1 parent cb79473 commit 66c5260

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/util_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func TestParseAndExecSimple(t *testing.T) {
5252
{"127^2+5/2-sqrt(2^2) + cbrt(3^3)", 16132.5},
5353
{"max(2)", 2},
5454
{"max(abs(1)+10)", 11},
55+
{"max(abs(1)+10)*2-1", 21},
5556
{"max(2,3.5)", 3.5},
5657
{"max(2^3,3+abs(-1)*6)", 9},
5758
{"max(2^3,3+abs(-1)*6, 20)", 20},

0 commit comments

Comments
 (0)