Skip to content

Commit

Permalink
testpy.py: Add a test for ONIGERR_TOO_MANY_CAPTURE_GROUPS (Issue #24)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Oct 19, 2016
1 parent eb666b8 commit 3a5715f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ def main():
x2("\\n?\\z", "こんにちは", 5, 5)
x2("\\z", "こんにちは", 5, 5)
x2("()" * 32767, "", 0, 0) # Issue #24
n("()" * 32768, "", err=onigmo.ONIGERR_TOO_MANY_CAPTURE_GROUPS)
x2("\\h+ \\H+", " 0123456789aBcDeF gh", 1, 20)
x2("[\\h]+ [\\H]+", " 0123456789aBcDeF gh", 1, 20)
x2("\\A(|.|(?:(.)\\g<1>\\k<2+0>))\\z", "reer", 0, 4)
Expand Down

0 comments on commit 3a5715f

Please sign in to comment.