Skip to content

Commit

Permalink
tests: add test using temp variables
Browse files Browse the repository at this point in the history
  • Loading branch information
yusshu committed Dec 29, 2023
1 parent e8f35ac commit eeacf28
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ void test() {
assertEvaluatesAndCompiles(50D, "math.CLAMP(10, 50, 100)");

assertEvaluatesAndCompiles(108.1415, "MATH.ABS(-100) + Math.sqrt(25) + math.PI");

assertEvaluatesAndCompiles(1D, "tEMP.x = 1; return Temp.X;");
assertEvaluatesAndCompiles(1D, "temp.X = 2; tEMp.y = 3; return TEMP.Y - Temp.x;");
}
}

0 comments on commit eeacf28

Please sign in to comment.