@@ -1954,6 +1954,7 @@ func TestRegexBuiltins(t *testing.T) {
19541954 match_empty: Regex.match("^", "ID-12"),
19551955 replace_one: Regex.replace("ID-12 ID-34", "ID-[0-9]+", "X"),
19561956 replace_all: Regex.replace_all("ID-12 ID-34", "ID-[0-9]+", "X"),
1957+ replace_all_adjacent: Regex.replace_all("aaaa", "aa", "X"),
19571958 replace_all_anchor: Regex.replace_all("abc", "^", "X"),
19581959 replace_all_boundary: Regex.replace_all("ab", "\\b", "X"),
19591960 replace_all_abutting_empty: Regex.replace_all("aa", "aa|", "X"),
@@ -1987,6 +1988,9 @@ func TestRegexBuiltins(t *testing.T) {
19871988 if ! out ["replace_all" ].Equal (NewString ("X X" )) {
19881989 t .Fatalf ("replace_all mismatch: %v" , out ["replace_all" ])
19891990 }
1991+ if ! out ["replace_all_adjacent" ].Equal (NewString ("XX" )) {
1992+ t .Fatalf ("replace_all_adjacent mismatch: %v" , out ["replace_all_adjacent" ])
1993+ }
19901994 if ! out ["replace_all_anchor" ].Equal (NewString ("Xabc" )) {
19911995 t .Fatalf ("replace_all_anchor mismatch: %v" , out ["replace_all_anchor" ])
19921996 }
0 commit comments