PageRenderTime 37ms CodeModel.GetById 14ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. module sneaky1_runme;
  2. import std.exception;
  3. import sneaky1.sneaky1;
  4. void main() {
  5. enforce(add(30, 2) == 32, "add test failed");
  6. enforce(subtract(20, 2) == 18, "subtract test failed");
  7. enforce(mul(20, 2) == 40, "mul test failed");
  8. enforce(divide(20, 2) == 10, "div test failed");
  9. }