summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-10-30 05:01:32 +0000
committerOri Bernstein <ori@eigenstate.org>2019-10-30 05:01:32 +0000
commit0113cd12d5ce3faae500772c76018f0ad4dd776a (patch)
tree6bff91c3c8ba46b99676f4c9396de7a9d92da5a0 /test
parent16b894430a5b71f4956ee305229bbbffd13605d0 (diff)
downloadmc-0113cd12d5ce3faae500772c76018f0ad4dd776a.tar.gz
Fix build on 9front.
Diffstat (limited to 'test')
-rw-r--r--test/matchctup.myr32
1 files changed, 0 insertions, 32 deletions
diff --git a/test/matchctup.myr b/test/matchctup.myr
deleted file mode 100644
index 07d51e6..0000000
--- a/test/matchctup.myr
+++ /dev/null
@@ -1,32 +0,0 @@
-use std
-
-const main = {
- match (gen_a(), gen_b())
- | (`std.Err _, _): std.put("error case 1")
- | (_, `std.Err _): std.put("error case 2")
- | (`std.Ok L, `std.Ok N):
- std.put("l = {} n = {}\n", L, N)
- ;;
-}
-
-var gen_a : (-> std.result(byte[:][:], void)) = {
- var ret = [][:]
-
- for var j = 0; j < 4; ++j
- std.slpush(&ret, std.fmt("{}", j))
- ;;
-
- if 1 + 1 > 3
- -> `std.Err void
- ;;
-
- -> `std.Ok ret
-}
-
-var gen_b : (-> std.result(int, void)) = {
- if 1 + 1 > 3
- -> `std.Err void
- ;;
-
- -> `std.Ok 5
-}