Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions javatests/com/google/re2j/MatcherTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public void testReplaceAll() {
"Frog",
"Lizard",
"What the Lizard's Eye Tells the Lizard's Brain");
ApiTestUtils.testReplaceAll( // Russian "the quick brown fox"...
"В чащах юга жил бы цитрус — да, но фальшивый экземпляр",
"цитрус",
"лимон Мейера",
"В чащах юга жил бы лимон Мейера — да, но фальшивый экземпляр");
ApiTestUtils.testReplaceAll(
"What the Frog's Eye Tells the Frog's Brain",
"F(rog)",
Expand All @@ -56,6 +61,11 @@ public void testReplaceAll() {
"(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)",
"$10$20",
"jb0wo0123");
ApiTestUtils.testReplaceAll(
"абвгдеёжзийклмнопрстуфхцчьыъэюя123",
"(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)",
"$10$2\\0",
"иб0хн0ыъэюя123");
ApiTestUtils.testReplaceAll(
"\u00e1\u0062\u00e7\u2655", "(.)", "<$1>", "<\u00e1><\u0062><\u00e7><\u2655>");
ApiTestUtils.testReplaceAll(
Expand Down