Skip to content

Commit 9065d09

Browse files
committed
tests
1 parent b01e466 commit 9065d09

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/tests2.nim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2826,6 +2826,12 @@ test "misc5":
28262826
check findAllStr(r"ΪⒶ弢ΪⒶ弢x", re2"ΪⒶ弢\w") == @["ΪⒶ弢Ϊ"]
28272827
check findAllStr(r"弢弢弢Ⓐ", re2"弢\w") == @["弢弢", "弢Ⓐ"]
28282828
check findAllStr(r"1弢2弢3弢4", re2"\w弢\w") == @["1弢2", "3弢4"]
2829+
check findAllStr(r"abcdefhij", re2"((abc|def)|(hij))") ==
2830+
@["abc", "def", "hij"]
2831+
check findAllStr(r"abcdefhij", re2"((abc|def)+|(hij)+)") ==
2832+
@["abcdef", "hij"]
2833+
check findAllStr(r"1abc2abc34", re2"\dabc\d\d") == @["2abc34"]
2834+
check findAllStr(r"1ΪⒶ弢2ΪⒶ弢34", re2"\dΪⒶ弢\d\d") == @["2ΪⒶ弢34"]
28292835

28302836
test "misc6_sanitycheck":
28312837
block:

0 commit comments

Comments
 (0)