summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-03-24 23:45:06 -0700
committerOri Bernstein <ori@eigenstate.org>2018-03-24 23:45:06 -0700
commit8da5ac5ac4258588634453d55cec95f29a02647b (patch)
tree75fd88bc74686846d10ac7681198231fb181e835 /mbld
parent56c70bd6049b8eb88c7b7ab3636d6c1761fa0008 (diff)
downloadmc-8da5ac5ac4258588634453d55cec95f29a02647b.tar.gz
Clean up and remove edge cases in strfind.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/test.myr8
1 files changed, 2 insertions, 6 deletions
diff --git a/mbld/test.myr b/mbld/test.myr
index cc9a304..bf666fd 100644
--- a/mbld/test.myr
+++ b/mbld/test.myr
@@ -124,11 +124,7 @@ const runtest = {b, n, targs, isbench, failed
const matchtest = {name, pat
match std.strfind(pat, ":")
- | `std.Some i: pat = pat[:i]
- | `std.None: /* ok */
- ;;
- match std.strfind(name, pat)
- | `std.Some _: -> true
- | `std.None: -> false
+ | `std.Some i: -> std.strhas(name, pat[:i])
+ | `std.None: -> std.strhas(name, pat)
;;
}