More math macros

This commit is contained in:
2020-11-14 15:10:53 -07:00
parent d209868eb6
commit 2383d8c8c0
4 changed files with 66 additions and 6 deletions

View File

@@ -50,4 +50,20 @@ class BasicTestCase extends Test {
function testVariadicSubtract() {
Assert.equals(-2, BasicTestCase.myDifference);
}
function testVariadicMultiply() {
Assert.equals(60, BasicTestCase.myProduct);
}
function testVariadicDivide() {
Assert.equals(0.5, BasicTestCase.myQuotient);
}
function testMod() {
Assert.equals(4, BasicTestCase.myRemainder);
}
function testPow() {
Assert.equals(256, BasicTestCase.myPower);
}
}