Skip to content

Commit 53da724

Browse files
authored
Add test for findlast (#42367)
1 parent 17ed45f commit 53da724

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/arrayops.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ end
567567
@test findlast(!iszero, a) == 8
568568
@test findlast(a.==0) == 5
569569
@test findlast(a.==5) == nothing
570+
@test findlast(false) == nothing # test non-AbstractArray findlast
570571
@test findlast(isequal(3), [1,2,4,1,2,3,4]) == 6
571572
@test findlast(isodd, [2,4,6,3,9,2,0]) == 5
572573
@test findlast(isodd, [2,4,6,2,0]) == nothing

0 commit comments

Comments
 (0)