summaryrefslogtreecommitdiff
path: root/test/matchargstr.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/matchargstr.myr')
-rw-r--r--test/matchargstr.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/matchargstr.myr b/test/matchargstr.myr
index 0d8cf4e..527082d 100644
--- a/test/matchargstr.myr
+++ b/test/matchargstr.myr
@@ -14,7 +14,8 @@ const main = {
match v
| `Int 127: std.fatal("wrong match `Int 127\n")
| `Str "foo": std.fatal("Wrong match `Str \"foo\"\n")
- | `Str "fsda": std.fatal("Wrong match `Str \"fsda\"\n")
+ /* make sure we backtrack for the test */
+ | `Str "asfd": std.fatal("Wrong match `Str \"fsda\"\n")
| `Str "asdf": std.put("Correct `Str \"asdf\"!\n")
| `Nil: std.fatal("Wrong match `Str \"fsda\"\n")
| _: std.fatal("Impossible failed match\n")