@@ -1378,18 +1378,19 @@ for (f1, f2, i) in ((Compat.findfirst, Compat.findnext, 1),
13781378 @test f2 (occursin (chars), " bx" , i) == f1 (occursin (chars), " bx" ) == nothing
13791379 end
13801380end
1381- for (f1, f2, i) in ((findfirst, findnext, 1 ),
1382- (findlast, findprev, 2 ),
1383- (Compat. findfirst, Compat. findnext, 1 ),
1384- (Compat. findlast, Compat. findprev, 2 ))
1385- @test f2 (" a" , " ba" , i) == f1 (" a" , " ba" ) == 2 : 2
1386- @test f2 (" z" , " ba" , i) == f1 (" z" , " ba" ) == 0 : - 1
1387- end
1388- for (f1, f2, i) in ((findfirst, findnext, 1 ),
1389- (Compat. findfirst, Compat. findnext, 1 ))
1390- @test f2 (r" a" , " ba" , 1 ) == f1 (r" a" , " ba" ) == 2 : 2
1391- @test f2 (r" z" , " ba" , 1 ) == f1 (r" z" , " ba" ) == 0 : - 1
1392- end
1381+ @test findnext (" a" , " ba" , 1 ) == findfirst (" a" , " ba" ) == 2 : 2
1382+ @test findnext (" z" , " ba" , 1 ) == findfirst (" z" , " ba" ) == (VERSION < v " 0.7.0-DEV.4480" ? (0 : - 1 ) : nothing )
1383+ @test findprev (" a" , " ba" , 2 ) == findlast (" a" , " ba" ) == 2 : 2
1384+ @test findprev (" z" , " ba" , 2 ) == findlast (" z" , " ba" ) == (VERSION < v " 0.7.0-DEV.4480" ? (0 : - 1 ) : nothing )
1385+ @test Compat. findnext (" a" , " ba" , 1 ) == Compat. findfirst (" a" , " ba" ) == 2 : 2
1386+ @test Compat. findnext (" z" , " ba" , 1 ) == Compat. findfirst (" z" , " ba" ) == nothing
1387+ @test Compat. findprev (" a" , " ba" , 2 ) == Compat. findlast (" a" , " ba" ) == 2 : 2
1388+ @test Compat. findprev (" z" , " ba" , 2 ) == Compat. findlast (" z" , " ba" ) == nothing
1389+
1390+ @test findnext (r" a" , " ba" , 1 ) == findfirst (r" a" , " ba" ) == 2 : 2
1391+ @test findnext (r" z" , " ba" , 1 ) == findfirst (r" z" , " ba" ) == (VERSION < v " 0.7.0-DEV.4480" ? (0 : - 1 ) : nothing )
1392+ @test Compat. findnext (r" a" , " ba" , 1 ) == Compat. findfirst (r" a" , " ba" ) == 2 : 2
1393+ @test Compat. findnext (r" z" , " ba" , 1 ) == Compat. findfirst (r" z" , " ba" ) == nothing
13931394
13941395@test Compat. findfirst (equalto (UInt8 (0 )), IOBuffer (UInt8[1 , 0 ])) == 2
13951396@test Compat. findfirst (equalto (UInt8 (9 )), IOBuffer (UInt8[1 , 0 ])) == nothing
0 commit comments