summaryrefslogtreecommitdiff
path: root/src/test/lib/tests/test_misc.sail
diff options
context:
space:
mode:
authorAlasdair Armstrong2018-07-30 19:16:34 +0100
committerAlasdair Armstrong2018-08-01 16:42:33 +0100
commit1479ae359fd3afebf9c3dfb6e58a77254e8140ea (patch)
treeffcfd96409467a5c41009f68afe1f65a2c7a3d49 /src/test/lib/tests/test_misc.sail
parent0b70a9d7464d6c30534d2f511cb8c9879c76b1e5 (diff)
Remove old test directory in src/test
Diffstat (limited to 'src/test/lib/tests/test_misc.sail')
-rw-r--r--src/test/lib/tests/test_misc.sail19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/lib/tests/test_misc.sail b/src/test/lib/tests/test_misc.sail
deleted file mode 100644
index 5b4b6fd4..00000000
--- a/src/test/lib/tests/test_misc.sail
+++ /dev/null
@@ -1,19 +0,0 @@
-function unit test () = {
- test_assert ("power0", (0 ** 3) == 0);
- test_assert ("power1", (3 ** 0) == 1);
- test_assert ("power2", (11 ** 17) == 505447028499293771);
- (* XXX should be type error but isn't
- test_assert ("power-1", (1 ** -1) == 0); *)
-
- test_assert ("abs_neg", (abs (-42)) == 42);
- test_assert ("abs_zero", (abs (0)) == 0);
- test_assert ("abs_pos", (abs (143)) == 143);
-
- test_assert ("max", max(-1, 1) == 1);
- test_assert ("min", min(-1, 1) == -1);
-
- test_assert ("length0", length([]) == 0);
- test_assert ("length1", length([bitzero]) == 1);
- test_assert ("length2", length(0x1234) == 16);
-}
-