Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emmt committed May 25, 2023
1 parent eee43b6 commit 27bfbd0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ atol = 1e-6
@test to_size((2,3,4,)) === (2,3,4,)
@test isa(to_size(Int16(5)), Tuple{Int})
@test standard_size(A) === size(A)
@test same_standard_size(A) === size(A)
@test same_standard_size(A, similar(A)) === size(A)
@test_throws DimensionMismatch same_standard_size(A, V)
@test same_size(A) === size(A)
@test same_size(A, similar(A)) === size(A)
@test_throws DimensionMismatch same_size(A, V)
@test to_size(dims) === dims
@test to_size(dims...) === dims
@test to_size(UInt16(dims[1]), dims[2:end]...) === dims
Expand Down Expand Up @@ -256,7 +262,7 @@ end
I4 = CartesianIndex(1,2,3,2)
I5 = CartesianIndex(1,2,3,2,4)
@test_throws ArgumentError colons(-1)
for d 0:12
@testset "$d colon(s)" for d 0:15
tup = ntuple(x -> Colon(), d)
@test colons(d) === tup
@test colons(Val(d)) === tup
Expand Down

2 comments on commit 27bfbd0

@emmt
Copy link
Owner Author

@emmt emmt commented on 27bfbd0 May 25, 2023

Choose a reason for hiding this comment

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

@JuliaRegistrator register branch=master

@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 created: JuliaRegistries/General/84239

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 the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.7 -m "<description of version>" 27bfbd0bec04ccac7a0d6760b172814caaf8c276
git push origin v0.2.7

Please sign in to comment.