PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/d/sneaky1_runme.2.d

#
D | 11 lines | 9 code | 2 blank | 0 comment | 4 complexity | b74d3421a2d6ef431b1d6dd7243ff722 MD5 | raw file
 1module sneaky1_runme;
 2
 3import std.exception;
 4import sneaky1.sneaky1;
 5
 6void main() {
 7  enforce(add(30, 2) == 32, "add test failed");
 8  enforce(subtract(20, 2) == 18, "subtract test failed");
 9  enforce(mul(20, 2) == 40, "mul test failed");
10  enforce(divide(20, 2) == 10, "div test failed");
11}