Fix variable argument functions in expressions

204ef7a708466d8739e5dcbfbc4794b57cabab0f

Co-Authored-By: Octavia Togami <2093023+octylFractal@users.noreply.github.com>
This commit is contained in:
N0tMyFaultOG
2020-11-13 22:35:53 +01:00
parent a32b4a1345
commit 5d283e1a17
5 changed files with 30 additions and 2 deletions

View File

@ -51,6 +51,9 @@ class ExpressionTest extends BaseExpressionTest {
// check functions
testCase("sin(5)", sin(5)),
testCase("atan2(3, 4)", atan2(3, 4)),
testCase("min(1, 2)", 1),
testCase("max(1, 2)", 2),
testCase("max(1, 2, 3, 4, 5)", 5),
// check conditionals
testCase("0 || 5", 5),
testCase("2 || 5", 2),