summaryrefslogtreecommitdiff
path: root/Examples/test-suite/d/sneaky1_runme.2.d
blob: 84e51e74dbf7f1964143082bc0cb5d9b29cde794 (plain)
1
2
3
4
5
6
7
8
9
10
11
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");
}