add float min max to the compiler

This commit is contained in:
water
2020-11-29 10:46:14 -05:00
parent 435b0da144
commit e93b54347f
14 changed files with 178 additions and 20 deletions
+5
View File
@@ -75,3 +75,8 @@ TEST_F(FloatTests, Functions) {
env, testCategory, "nested-float-functions.static.gc",
{"i 1.4400 3.4000\nr 10.1523\ni 1.2000 10.1523\nr 17.5432\n17.543 10.152\n0\n"});
}
TEST_F(FloatTests, MinMax) {
runner.run_static_test(env, testCategory, "float-max.static.gc", {"3.70\n0\n"});
runner.run_static_test(env, testCategory, "float-min.static.gc", {"-1.20\n0\n"});
}