Skip to content

Instantly share code, notes, and snippets.

@nmushegian
Last active August 29, 2015 14:27
Show Gist options
  • Save nmushegian/bc4df77131336d5a9dfc to your computer and use it in GitHub Desktop.
Save nmushegian/bc4df77131336d5a9dfc to your computer and use it in GitHub Desktop.
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