@@ -1220,3 +1220,32 @@ end
12201220@test atan (1.0 , 2.0 ) == atan (0.5 )
12211221@test atan (- 1.0 , - 2.0 ) ≈ atan (0.5 ) - π
12221222@test atan (big " -1.0" , big " -2.0" ) ≈ atan (big " 0.5" ) - π
1223+
1224+ # 0.7.0-DEV.4724
1225+ let
1226+ @test Compat. split (" " , ' ,' ; keepempty= false ) == []
1227+ @test Compat. split (" ," , ' ,' ; keepempty= false ) == []
1228+ @test Compat. split (" ,," , ' ,' ; keepempty= false ) == []
1229+ @test Compat. rsplit (" " , ' ,' ; keepempty= false ) == []
1230+ @test Compat. rsplit (" ," , ' ,' ; keepempty= false ) == []
1231+ @test Compat. rsplit (" ,," , ' ,' ; keepempty= false ) == []
1232+
1233+ str = " a.:.ba..:..cba.:.:.dcba.:."
1234+ @test Compat. split (str, " .:." ; keepempty= false ) == [" a" ," ba." ," .cba" ," :.dcba" ]
1235+ @test Compat. split (str, " .:." ; keepempty= true ) == [" a" ," ba." ," .cba" ," :.dcba" ," " ]
1236+ @test Compat. split (str, " .:." ; limit= 3 , keepempty= false ) == [" a" ," ba." ," .cba.:.:.dcba.:." ]
1237+ @test Compat. split (str, " .:." ; limit= 3 , keepempty= true ) == [" a" ," ba." ," .cba.:.:.dcba.:." ]
1238+ @test Compat. rsplit (str, " .:." ; keepempty= false ) == [" a" ," ba." ," .cba.:" ," dcba" ]
1239+ @test Compat. rsplit (str, " .:." ; keepempty= true ) == [" a" ," ba." ," .cba.:" ," dcba" ," " ]
1240+ @test Compat. rsplit (str, " .:." ; limit= 3 , keepempty= false ) == [" a.:.ba." ," .cba.:" ," dcba" ]
1241+ @test Compat. rsplit (str, " .:." ; limit= 3 , keepempty= true ) == [" a.:.ba..:..cba.:" ," dcba" ," " ]
1242+
1243+ @test Compat. split (str, r" \. (:\. )+" ; keepempty= false ) == [" a" ," ba." ," .cba" ," dcba" ]
1244+ @test Compat. split (str, r" \. (:\. )+" ; keepempty= true ) == [" a" ," ba." ," .cba" ," dcba" ," " ]
1245+ @test Compat. split (str, r" \. (:\. )+" ; limit= 3 , keepempty= false ) == [" a" ," ba." ," .cba.:.:.dcba.:." ]
1246+ @test Compat. split (str, r" \. (:\. )+" ; limit= 3 , keepempty= true ) == [" a" ," ba." ," .cba.:.:.dcba.:." ]
1247+ @test Compat. split (str, r" \. +:\. +" ; keepempty= false ) == [" a" ," ba" ," cba" ," :.dcba" ]
1248+ @test Compat. split (str, r" \. +:\. +" ; keepempty= true ) == [" a" ," ba" ," cba" ," :.dcba" ," " ]
1249+ @test Compat. split (str, r" \. +:\. +" ; limit= 3 , keepempty= false ) == [" a" ," ba" ," cba.:.:.dcba.:." ]
1250+ @test Compat. split (str, r" \. +:\. +" ; limit= 3 , keepempty= true ) == [" a" ," ba" ," cba.:.:.dcba.:." ]
1251+ end
0 commit comments