Code clean up

This commit is contained in:
Add00
2023-07-31 13:13:10 -04:00
parent 5317a12383
commit c43310f316
2 changed files with 7 additions and 5 deletions

View File

@@ -143,8 +143,8 @@ import standard;
assert clamp(0.0, 1.0, 5.0) == 1, "clamp(0.0, 1.0, 5.0) failed";
assert clamp(10.0, 1.0, 5.0) == 5, "clamp(10.0, 1.0, 5.0) failed";
// assert typeof clamp(10, 1, 5) == int, "typeof clamp(10, 1, 5) == int failed";
// assert typeof clamp(10.0, 1, 5) == int, "typeof clamp(10.0, 1, 5) == int failed";
assert typeof clamp(10, 1, 5) == int, "typeof clamp(10, 1, 5) == int failed";
assert typeof clamp(10.0, 1, 5) == int, "typeof clamp(10.0, 1, 5) == int failed";
assert typeof clamp(10, 1, 5.0) == float, "typeof clamp(10, 1, 5.0) == float failed";
}