-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Richard
authored and
Richard
committed
Apr 5, 2019
1 parent
05b7f8d
commit 9840172
Showing
10 changed files
with
150 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
static success = 0 | ||
fn is(c m){ | ||
if(c success m) | ||
pub fn test_multiplication() { | ||
assert(4,(2*2),"2 * 2 should be 4") | ||
assert(1,(1*1),"1 * 1 should be 1") | ||
} | ||
|
||
pub fn test_multiplication { | ||
if((4 == (2*2))) | ||
is(==(4 *(2 2)) "2 * 2 should be 4") | ||
is(==(1 *(1 1)) "1 * 1 should be 2") | ||
} | ||
|
||
test multiplication { | ||
is(==(5 +(2 2)) "2 * 2 should be 4") | ||
is(==(2 +(1 1)) "1 * 1 should be 2") | ||
pub fn test_addition() { | ||
assert(5,(2+2),"2 + 2 should be 4") | ||
assert(2,(1+1),"1 + 1 should be 2") | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.