diff options
author | Rickard Green <[email protected]> | 2019-06-26 11:32:29 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2019-06-26 11:41:22 +0200 |
commit | cb16cb46a0272adcb7533d8614541e783e0fd161 (patch) | |
tree | 4b20a877db0020dfb55fc1a29afec8071fbfc54f /lib/stdlib | |
parent | 2c798383d620665b80ad4c0ba708f6c02d93ae15 (diff) | |
download | otp-cb16cb46a0272adcb7533d8614541e783e0fd161.tar.gz otp-cb16cb46a0272adcb7533d8614541e783e0fd161.tar.bz2 otp-cb16cb46a0272adcb7533d8614541e783e0fd161.zip |
Convert generated re replace and split tests from latin1 to UTF8
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/test/re_testoutput1_replacement_test.erl | 56 | ||||
-rw-r--r-- | lib/stdlib/test/re_testoutput1_split_test.erl | 54 |
2 files changed, 55 insertions, 55 deletions
diff --git a/lib/stdlib/test/re_testoutput1_replacement_test.erl b/lib/stdlib/test/re_testoutput1_replacement_test.erl index 3aa5447ab8..bb43047757 100644 --- a/lib/stdlib/test/re_testoutput1_replacement_test.erl +++ b/lib/stdlib/test/re_testoutput1_replacement_test.erl @@ -15043,10 +15043,10 @@ def">> = iolist_to_binary(re:replace("abc def","abc$","\\1aguwNOw&Q&p&",[global])), <<"abcSuqabcSwabcabcSabcsxWGOk">> = iolist_to_binary(re:replace("abcS","(abc)\\123","&uq&w\\1&\\1sxWGOk",[])), <<"abcSuqabcSwabcabcSabcsxWGOk">> = iolist_to_binary(re:replace("abcS","(abc)\\123","&uq&w\\1&\\1sxWGOk",[global])), - <<"dMwabc�Xqyabc�abc�i">> = iolist_to_binary(re:replace("abc�","(abc)\\223","dMw&Xqy&&i",[])), - <<"dMwabc�Xqyabc�abc�i">> = iolist_to_binary(re:replace("abc�","(abc)\\223","dMw&Xqy&&i",[global])), - <<"MiqonlGabc�YdXabcf">> = iolist_to_binary(re:replace("abc�","(abc)\\323","MiqonlG&YdX\\1f",[])), - <<"MiqonlGabc�YdXabcf">> = iolist_to_binary(re:replace("abc�","(abc)\\323","MiqonlG&YdX\\1f",[global])), + <<"dMwabcXqyabcabci">> = iolist_to_binary(re:replace("abc","(abc)\\223","dMw&Xqy&&i",[])), + <<"dMwabcXqyabcabci">> = iolist_to_binary(re:replace("abc","(abc)\\223","dMw&Xqy&&i",[global])), + <<"MiqonlGabcÓYdXabcf">> = iolist_to_binary(re:replace("abcÓ","(abc)\\323","MiqonlG&YdX\\1f",[])), + <<"MiqonlGabcÓYdXabcf">> = iolist_to_binary(re:replace("abcÓ","(abc)\\323","MiqonlG&YdX\\1f",[global])), <<"mTlabc@bdhBATwW">> = iolist_to_binary(re:replace("abc@","(abc)\\100","mTl&bdhBATwW",[])), <<"mTlabc@bdhBATwW">> = iolist_to_binary(re:replace("abc@","(abc)\\100","mTl&bdhBATwW",[global])), <<"QabcRSbUabc@Rabc@abc@fabckabcWabc">> = iolist_to_binary(re:replace("abc@","(abc)\\100","Q\\1RSbU&R&&f\\1k\\1W\\1",[])), @@ -18423,8 +18423,8 @@ run34() -> <<"FxjIeXxjLM">> = iolist_to_binary(re:replace("M","\\M","FxjIeXxjL&",[global])), <<"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa">> = iolist_to_binary(re:replace("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","(a+)*b","\\1AGI&o&owvv&Ew",[])), <<"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa">> = iolist_to_binary(re:replace("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","(a+)*b","\\1AGI&o&owvv&Ew",[global])), - <<"�XAZidYPfGETo">> = iolist_to_binary(re:replace("�XAZXB","(?<=Z)X.","\\1\\1\\1idYPfGETo",[])), - <<"�XAZidYPfGETo">> = iolist_to_binary(re:replace("�XAZXB","(?<=Z)X.","\\1\\1\\1idYPfGETo",[global])), + <<"XAZidYPfGETo">> = iolist_to_binary(re:replace("XAZXB","(?<=Z)X.","\\1\\1\\1idYPfGETo",[])), + <<"XAZidYPfGETo">> = iolist_to_binary(re:replace("XAZXB","(?<=Z)X.","\\1\\1\\1idYPfGETo",[global])), <<"bNQDHCQab cd defgab cd defgLqxKPLt">> = iolist_to_binary(re:replace("ab cd defg","ab cd (?x) de fg","bNQDHCQ&&LqxKPLt",[])), <<"bNQDHCQab cd defgab cd defgLqxKPLt">> = iolist_to_binary(re:replace("ab cd defg","ab cd (?x) de fg","bNQDHCQ&&LqxKPLt",[global])), <<"kPHqOwBhoab cddefgWcAxPfqs">> = iolist_to_binary(re:replace("ab cddefg","ab cd(?x) de fg","k\\1PHqOwBho&WcAxP\\1fqs",[])), @@ -18950,37 +18950,37 @@ run40() -> <<"JqKpfdXTX XMbyX XX X">> = iolist_to_binary(re:replace("X X","\\H\\h\\V\\v","JqKpfdXT&Mby&\\1&",[global])), <<"** Failers">> = iolist_to_binary(re:replace("** Failers","\\H\\h\\V\\v","FAmVe\\1O",[])), <<"** Failers">> = iolist_to_binary(re:replace("** Failers","\\H\\h\\V\\v","FAmVe\\1O",[global])), - <<"� X">> = iolist_to_binary(re:replace("� X","\\H\\h\\V\\v","\\1mSDSJp",[])), - <<"� X">> = iolist_to_binary(re:replace("� X","\\H\\h\\V\\v","\\1mSDSJp",[global])), - <<"JagFUGCxoJ �X -
SMGCK">> = iolist_to_binary(re:replace(" �X + <<" X">> = iolist_to_binary(re:replace(" X","\\H\\h\\V\\v","\\1mSDSJp",[])), + <<" X">> = iolist_to_binary(re:replace(" X","\\H\\h\\V\\v","\\1mSDSJp",[global])), + <<"JagFUGCxoJ X +
SMGCK">> = iolist_to_binary(re:replace(" X
","\\H*\\h+\\V?\\v{3,4}","JagFUGCxoJ&\\1SMGCK",[])), - <<"JagFUGCxoJ �X -
SMGCK">> = iolist_to_binary(re:replace(" �X + <<"JagFUGCxoJ X +
SMGCK">> = iolist_to_binary(re:replace(" X
","\\H*\\h+\\V?\\v{3,4}","JagFUGCxoJ&\\1SMGCK",[global])), - <<" � -
an � -
uIjsv">> = iolist_to_binary(re:replace(" � + <<" +
an +
uIjsv">> = iolist_to_binary(re:replace("
","\\H*\\h+\\V?\\v{3,4}","&an&\\1uIjsv\\1",[])), - <<" � -
an � -
uIjsv">> = iolist_to_binary(re:replace(" � + <<" +
an +
uIjsv">> = iolist_to_binary(re:replace("
","\\H*\\h+\\V?\\v{3,4}","&an&\\1uIjsv\\1",[global])), - <<" � -Cnyt � -sJWoCUIsrr">> = iolist_to_binary(re:replace(" � + <<" +Cnyt +sJWoCUIsrr">> = iolist_to_binary(re:replace(" ","\\H*\\h+\\V?\\v{3,4}","&C\\1nyt\\1\\1&\\1sJWoCUIsrr",[])), - <<" � -Cnyt � -sJWoCUIsrr">> = iolist_to_binary(re:replace(" � + <<" +Cnyt +sJWoCUIsrr">> = iolist_to_binary(re:replace(" ","\\H*\\h+\\V?\\v{3,4}","&C\\1nyt\\1\\1&\\1sJWoCUIsrr",[global])), <<"** Failers">> = iolist_to_binary(re:replace("** Failers","\\H*\\h+\\V?\\v{3,4}","heJfENVeR\\1TJ\\1&&Dvf",[])), <<"** Failers">> = iolist_to_binary(re:replace("** Failers","\\H*\\h+\\V?\\v{3,4}","heJfENVeR\\1TJ\\1&&Dvf",[global])), - <<" � -">> = iolist_to_binary(re:replace(" � + <<" +">> = iolist_to_binary(re:replace(" ","\\H*\\h+\\V?\\v{3,4}","g&",[])), - <<" � -">> = iolist_to_binary(re:replace(" � + <<" +">> = iolist_to_binary(re:replace(" ","\\H*\\h+\\V?\\v{3,4}","g&",[global])), <<"XY bvHE">> = iolist_to_binary(re:replace("XY ABCDE","\\H{3,4}","bvH",[])), <<"XY bvHE">> = iolist_to_binary(re:replace("XY ABCDE","\\H{3,4}","bvH",[global])), diff --git a/lib/stdlib/test/re_testoutput1_split_test.erl b/lib/stdlib/test/re_testoutput1_split_test.erl index 626a0544fb..fcffa89e3f 100644 --- a/lib/stdlib/test/re_testoutput1_split_test.erl +++ b/lib/stdlib/test/re_testoutput1_split_test.erl @@ -22940,14 +22940,14 @@ def","abc$",[]))), <<":abc:">> = iolist_to_binary(join(re:split("abcS","(abc)\\123",[{parts, 2}]))), <<":abc:">> = iolist_to_binary(join(re:split("abcS","(abc)\\123",[]))), - <<":abc">> = iolist_to_binary(join(re:split("abc�","(abc)\\223",[trim]))), - <<":abc:">> = iolist_to_binary(join(re:split("abc�","(abc)\\223",[{parts, + <<":abc">> = iolist_to_binary(join(re:split("abc","(abc)\\223",[trim]))), + <<":abc:">> = iolist_to_binary(join(re:split("abc","(abc)\\223",[{parts, 2}]))), - <<":abc:">> = iolist_to_binary(join(re:split("abc�","(abc)\\223",[]))), - <<":abc">> = iolist_to_binary(join(re:split("abc�","(abc)\\323",[trim]))), - <<":abc:">> = iolist_to_binary(join(re:split("abc�","(abc)\\323",[{parts, + <<":abc:">> = iolist_to_binary(join(re:split("abc","(abc)\\223",[]))), + <<":abc">> = iolist_to_binary(join(re:split("abcÓ","(abc)\\323",[trim]))), + <<":abc:">> = iolist_to_binary(join(re:split("abcÓ","(abc)\\323",[{parts, 2}]))), - <<":abc:">> = iolist_to_binary(join(re:split("abc�","(abc)\\323",[]))), + <<":abc:">> = iolist_to_binary(join(re:split("abcÓ","(abc)\\323",[]))), <<":abc">> = iolist_to_binary(join(re:split("abc@","(abc)\\100",[trim]))), <<":abc:">> = iolist_to_binary(join(re:split("abc@","(abc)\\100",[{parts, 2}]))), @@ -29024,10 +29024,10 @@ run34() -> <<"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa">> = iolist_to_binary(join(re:split("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","(a+)*b",[{parts, 2}]))), <<"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa">> = iolist_to_binary(join(re:split("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","(a+)*b",[]))), - <<"�XAZ">> = iolist_to_binary(join(re:split("�XAZXB","(?<=Z)X.",[trim]))), - <<"�XAZ:">> = iolist_to_binary(join(re:split("�XAZXB","(?<=Z)X.",[{parts, + <<"XAZ">> = iolist_to_binary(join(re:split("XAZXB","(?<=Z)X.",[trim]))), + <<"XAZ:">> = iolist_to_binary(join(re:split("XAZXB","(?<=Z)X.",[{parts, 2}]))), - <<"�XAZ:">> = iolist_to_binary(join(re:split("�XAZXB","(?<=Z)X.",[]))), + <<"XAZ:">> = iolist_to_binary(join(re:split("XAZXB","(?<=Z)X.",[]))), <<"">> = iolist_to_binary(join(re:split("ab cd defg","ab cd (?x) de fg",[trim]))), <<":">> = iolist_to_binary(join(re:split("ab cd defg","ab cd (?x) de fg",[{parts, 2}]))), @@ -30042,40 +30042,40 @@ run40() -> <<"** Failers">> = iolist_to_binary(join(re:split("** Failers","\\H\\h\\V\\v",[{parts, 2}]))), <<"** Failers">> = iolist_to_binary(join(re:split("** Failers","\\H\\h\\V\\v",[]))), - <<"� X">> = iolist_to_binary(join(re:split("� X","\\H\\h\\V\\v",[trim]))), - <<"� X">> = iolist_to_binary(join(re:split("� X","\\H\\h\\V\\v",[{parts, + <<" X">> = iolist_to_binary(join(re:split(" X","\\H\\h\\V\\v",[trim]))), + <<" X">> = iolist_to_binary(join(re:split(" X","\\H\\h\\V\\v",[{parts, 2}]))), - <<"� X">> = iolist_to_binary(join(re:split("� X","\\H\\h\\V\\v",[]))), - <<"">> = iolist_to_binary(join(re:split(" �X + <<" X">> = iolist_to_binary(join(re:split(" X","\\H\\h\\V\\v",[]))), + <<"">> = iolist_to_binary(join(re:split(" X
","\\H*\\h+\\V?\\v{3,4}",[trim]))), - <<":">> = iolist_to_binary(join(re:split(" �X + <<":">> = iolist_to_binary(join(re:split(" X
","\\H*\\h+\\V?\\v{3,4}",[{parts,2}]))), - <<":">> = iolist_to_binary(join(re:split(" �X + <<":">> = iolist_to_binary(join(re:split(" X
","\\H*\\h+\\V?\\v{3,4}",[]))), - <<"">> = iolist_to_binary(join(re:split(" � + <<"">> = iolist_to_binary(join(re:split("
","\\H*\\h+\\V?\\v{3,4}",[trim]))), - <<":">> = iolist_to_binary(join(re:split(" � + <<":">> = iolist_to_binary(join(re:split("
","\\H*\\h+\\V?\\v{3,4}",[{parts,2}]))), - <<":">> = iolist_to_binary(join(re:split(" � + <<":">> = iolist_to_binary(join(re:split("
","\\H*\\h+\\V?\\v{3,4}",[]))), - <<"">> = iolist_to_binary(join(re:split(" � + <<"">> = iolist_to_binary(join(re:split(" ","\\H*\\h+\\V?\\v{3,4}",[trim]))), - <<":">> = iolist_to_binary(join(re:split(" � + <<":">> = iolist_to_binary(join(re:split(" ","\\H*\\h+\\V?\\v{3,4}",[{parts,2}]))), - <<":">> = iolist_to_binary(join(re:split(" � + <<":">> = iolist_to_binary(join(re:split(" ","\\H*\\h+\\V?\\v{3,4}",[]))), <<"** Failers">> = iolist_to_binary(join(re:split("** Failers","\\H*\\h+\\V?\\v{3,4}",[trim]))), <<"** Failers">> = iolist_to_binary(join(re:split("** Failers","\\H*\\h+\\V?\\v{3,4}",[{parts, 2}]))), <<"** Failers">> = iolist_to_binary(join(re:split("** Failers","\\H*\\h+\\V?\\v{3,4}",[]))), - <<" � -">> = iolist_to_binary(join(re:split(" � + <<" +">> = iolist_to_binary(join(re:split(" ","\\H*\\h+\\V?\\v{3,4}",[trim]))), - <<" � -">> = iolist_to_binary(join(re:split(" � + <<" +">> = iolist_to_binary(join(re:split(" ","\\H*\\h+\\V?\\v{3,4}",[{parts,2}]))), - <<" � -">> = iolist_to_binary(join(re:split(" � + <<" +">> = iolist_to_binary(join(re:split(" ","\\H*\\h+\\V?\\v{3,4}",[]))), <<"XY :E">> = iolist_to_binary(join(re:split("XY ABCDE","\\H{3,4}",[trim]))), <<"XY :E">> = iolist_to_binary(join(re:split("XY ABCDE","\\H{3,4}",[{parts, |