Skip to content

Commit 4c423b1

Browse files
committed
adjacent index test
added test for adjacent index
1 parent 7db0fb3 commit 4c423b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

regex_macros/tests/tests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ replace!(rep_all, replace_all, r"\d", "age: 26", "Z", "age: ZZ");
189189
replace!(rep_groups, replace, r"(\S+)\s+(\S+)", "w1 w2", "$2 $1", "w2 w1");
190190
replace!(rep_double_dollar, replace,
191191
r"(\S+)\s+(\S+)", "w1 w2", "$2 $$1", "w2 $1");
192+
replace!(rep_adjacent_index, replace,
193+
r"([^aeiouy])ies$", "skies", "$1y", "sky");
192194
replace!(rep_no_expand, replace,
193195
r"(\S+)\s+(\S+)", "w1 w2", NoExpand("$2 $1"), "$2 $1");
194196
replace!(rep_named, replace_all,

0 commit comments

Comments
 (0)