remove typed ops
This commit is contained in:
16
vm_suite.ce
16
vm_suite.ce
@@ -2761,6 +2761,22 @@ run("modulo floats", function() {
|
||||
if (result < 1.4 || result > 1.6) fail("modulo floats failed")
|
||||
})
|
||||
|
||||
run("remainder float basic", function() {
|
||||
if (remainder(5.5, 2.5) != 0.5) fail("remainder 5.5 % 2.5 failed")
|
||||
})
|
||||
|
||||
run("modulo float basic", function() {
|
||||
if (modulo(5.5, 2.5) != 0.5) fail("modulo 5.5 % 2.5 failed")
|
||||
})
|
||||
|
||||
run("remainder float negative", function() {
|
||||
if (remainder(-5.5, 2.5) != -0.5) fail("remainder -5.5 % 2.5 failed")
|
||||
})
|
||||
|
||||
run("modulo float negative", function() {
|
||||
if (modulo(-5.5, 2.5) != 2.0) fail("modulo -5.5 % 2.5 failed")
|
||||
})
|
||||
|
||||
// ============================================================================
|
||||
// MIN AND MAX FUNCTIONS
|
||||
// ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user