summaryrefslogtreecommitdiff
path: root/Examples/test-suite/d/aggregate_runme.1.d
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/d/aggregate_runme.1.d')
-rw-r--r--Examples/test-suite/d/aggregate_runme.1.d25
1 files changed, 0 insertions, 25 deletions
diff --git a/Examples/test-suite/d/aggregate_runme.1.d b/Examples/test-suite/d/aggregate_runme.1.d
deleted file mode 100644
index a00d34c25..000000000
--- a/Examples/test-suite/d/aggregate_runme.1.d
+++ /dev/null
@@ -1,25 +0,0 @@
-module aggregate_runme;
-
-import aggregate.aggregate;
-
-void main() {
- // Confirm that move() returns correct results under normal use.
- int result = move(UP);
- if (result != UP) throw new Exception("UP failed");
-
- result = move(DOWN);
- if (result != DOWN) throw new Exception("DOWN failed");
-
- result = move(LEFT);
- if (result != LEFT) throw new Exception("LEFT failed");
-
- result = move(RIGHT);
- if (result != RIGHT) throw new Exception("RIGHT failed");
-
- // Confirm that move() raises an exception when the contract is violated.
- try {
- move(0);
- throw new Exception("0 test failed");
- }
- catch (Exception e) {}
-}