Skip to content

Commit

Permalink
Add two small tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle authored May 10, 2024
1 parent 9851910 commit 628839b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/chainedvector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@
@test all(==(2), x)
@test length(x) == 5

# https://github.com/JuliaData/SentinelArrays.jl/issues/97
x = ChainedVector([[18, 70, 92, 15, 65], [25, 14, 95, 54, 57]])
@test argmax(x) == 8
@test argmin(x) == 7

x = ChainedVector(Vector{Float64}[])
@test !any(x -> iseven(x), x)
@test !any(map(x -> iseven(x), x))
Expand Down

0 comments on commit 628839b

Please sign in to comment.