Skip to content

Commit

Permalink
added test for CartesianIndex iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
francescoalemanno committed Mar 6, 2020
1 parent 6f1e177 commit f5392e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ using Test
using DefaultArrays
using LinearAlgebra
@testset "Basic Tests" begin

A=DefaultArray(Inf,(2,3))
A[1,2]=2
@test maximum(A)==Inf
Expand All @@ -11,6 +10,7 @@ using LinearAlgebra
A[4]=3.0
@test A[4]==A[2,2]
@test all(collect(eachnondefault(A)).==[4, 3])
@test collect(eachnondefault(A,IndexCartesian())) == [CartesianIndex(2, 2), CartesianIndex(1, 2)]
B=DefaultArray(Inf,(3,))
B[3]=2
@test B[3]==2
Expand Down

2 comments on commit f5392e2

@francescoalemanno
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/10476

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.0 -m "<description of version>" f5392e2c28c03967b83342602231743f1c85358c
git push origin v1.0.0

Please sign in to comment.