Skip to content
Permalink
Browse files

fix test

  • Loading branch information...
jfo committed Mar 17, 2018
1 parent 05356ec commit 89bd752f4cc057783c289ad53169a06e3a3ae0c3
Showing with 4 additions and 4 deletions.
  1. +4 −4 bf_tests.zig
@@ -69,8 +69,8 @@ test "errors on mismatched brackets missing opening" {
if (bf(src, storage[0..])) {
@panic("expected error.Overflow");
} else |err| switch (err) {
error.OutOfBounds => {},
else => {}
error.OutOfBounds => assert(true),
else => assert(false)
}
}

@@ -80,8 +80,8 @@ test "errors on mismatched brackets missing closing" {
if (bf(src, storage[0..])) {
@panic("expected error.OutOfBounds");
} else |err| switch (err) {
error.OutOfBounds => {},
else => {}
error.OutOfBounds => assert(true),
else => assert(false)
}
}

0 comments on commit 89bd752

Please sign in to comment.
You can’t perform that action at this time.