Skip to content

Commit

Permalink
Add regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Seelengrab committed Dec 20, 2022
1 parent ac77be9 commit 30236cf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions stdlib/PCRE2_jll/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,14 @@ using Test, Libdl, PCRE2_jll
vn = VersionNumber(split(unsafe_string(pointer(vstr)), " ")[1])
@test vn == v"10.42.0"
end

@testset "#47936" begin
tests = (r"a+[bc]+c",
r"a+[bc]{1,2}c",
r"(a)+[bc]+c",
r"a{1,2}[bc]+c",
r"(a+)[bc]+c")
for re in tests
@test !isnothing(match(re, "ababc"))
end
end

0 comments on commit 30236cf

Please sign in to comment.