Test that unops work
This commit is contained in:
@@ -70,4 +70,8 @@ class BasicTestCase extends Test {
|
|||||||
function testPow() {
|
function testPow() {
|
||||||
Assert.equals(256, BasicTestCase.myPower);
|
Assert.equals(256, BasicTestCase.myPower);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function testUnop() {
|
||||||
|
Assert.equals(7, BasicTestCase.myInc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,3 +36,6 @@
|
|||||||
(defvar myRemainder (% 10 6))
|
(defvar myRemainder (% 10 6))
|
||||||
|
|
||||||
(defvar myPower (^ 2 8))
|
(defvar myPower (^ 2 8))
|
||||||
|
|
||||||
|
(defvar _myNum 6)
|
||||||
|
(defvar myInc ++_myNum)
|
||||||
Reference in New Issue
Block a user