summaryrefslogtreecommitdiff
path: root/Examples/test-suite/d/sneaky1_runme.2.d
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/d/sneaky1_runme.2.d')
-rw-r--r--Examples/test-suite/d/sneaky1_runme.2.d11
1 files changed, 11 insertions, 0 deletions
diff --git a/Examples/test-suite/d/sneaky1_runme.2.d b/Examples/test-suite/d/sneaky1_runme.2.d
new file mode 100644
index 000000000..84e51e74d
--- /dev/null
+++ b/Examples/test-suite/d/sneaky1_runme.2.d
@@ -0,0 +1,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");
+}