Skip to content

Commit

Permalink
main.zig: this is segfaulting for me on arm64 mac. how about CI?
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Jul 1, 2024
1 parent 42409ae commit dd15317
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,12 @@ test "missing capture group at end of capture list" {
null,
}, captures);
}

test "what" {
const regex = try Regex.compile("(?:(\\\\.|[^|\r\n])*)", .{ .Utf8 = true });
defer regex.deinit();
const line =
" the void type can only have a single value (which is also voida) and " ++
" indicates the absence of a value. Functions that do not ret |\n";
try testing.expect((try regex.matches(line, .{ .Anchored = true })) != null);
}

0 comments on commit dd15317

Please sign in to comment.