Skip to content

Commit f026f3d

Browse files
committed
tests
1 parent 9065d09 commit f026f3d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/tests2.nim

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,6 +2832,19 @@ test "misc5":
28322832
@["abcdef", "hij"]
28332833
check findAllStr(r"1abc2abc34", re2"\dabc\d\d") == @["2abc34"]
28342834
check findAllStr(r"1ΪⒶ弢2ΪⒶ弢34", re2"\dΪⒶ弢\d\d") == @["2ΪⒶ弢34"]
2835+
check findAllStr(r"1abc2abc34", re2"\dabc\d4") == @["2abc34"]
2836+
check findAllStr(r"1a0c2a0c34", re2"\da0c\d\d") == @["2a0c34"]
2837+
check findAllStr(r"1abc23abc4", re2"\dabc\d\d") == @["1abc23"]
2838+
check findAllStr(r"1abc23abc45abc6", re2"\dabc\d\d") == @["1abc23"]
2839+
check findAllStr(r"1abc23abc45abc67", re2"\dabc\d\d") ==
2840+
@["1abc23", "5abc67"]
2841+
check findAllStr(r"1ΪⒶ弢2ΪⒶ弢34", re2"\dΪⒶ弢\d4") == @["2ΪⒶ弢34"]
2842+
check findAllStr(r"1Ϊ0弢2Ϊ0弢34", re2"\dΪ0弢\d\d") == @["2Ϊ0弢34"]
2843+
check findAllStr(r"1ΪⒶ弢23ΪⒶ弢4", re2"\dΪⒶ弢\d\d") == @["1ΪⒶ弢23"]
2844+
check findAllStr(r"1ΪⒶ弢23ΪⒶ弢45ΪⒶ弢6", re2"\dΪⒶ弢\d\d") ==
2845+
@["1ΪⒶ弢23"]
2846+
check findAllStr(r"1ΪⒶ弢23ΪⒶ弢45ΪⒶ弢67", re2"\dΪⒶ弢\d\d") ==
2847+
@["1ΪⒶ弢23", "5ΪⒶ弢67"]
28352848

28362849
test "misc6_sanitycheck":
28372850
block:

0 commit comments

Comments
 (0)