Last active
August 29, 2015 14:27
-
-
Save nmushegian/bc4df77131336d5a9dfc to your computer and use it in GitHub Desktop.
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
import 'dapple/test/test.sol'; | |
import 'mydapp/math.sol'; | |
contract MathTest is Test { | |
Math m; | |
function setUp() { | |
m = new Math(); | |
} | |
function testAdd() { | |
// tests start with `test`. Each is called on a new | |
// instance of the post `setUp` contract. | |
assertEq(2, m.add(1, 1), "wrong sum); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment