/trunk/Examples/test-suite/d/sneaky1_runme.2.d
D | 11 lines | 9 code | 2 blank | 0 comment | 4 complexity | b74d3421a2d6ef431b1d6dd7243ff722 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- module sneaky1_runme;
- import std.exception;
- import sneaky1.sneaky1;
- void main() {
- enforce(add(30, 2) == 32, "add test failed");
- enforce(subtract(20, 2) == 18, "subtract test failed");
- enforce(mul(20, 2) == 40, "mul test failed");
- enforce(divide(20, 2) == 10, "div test failed");
- }