Skip to content

Commit

Permalink
Add tests for Array<Pair<Array<Int>, Array<Int>>>. (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkastner authored Oct 14, 2022
1 parent f5d9c94 commit 99327b1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/arrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,16 @@
@test triang isa Polymake.Array{Polymake.Set{Polymake.to_cxx_type(Int64)}}
end
end

@testset "Polymake.Array{Polymake.StdPair{Polymake.Array{Int64}, Polymake.Array{Int64}}}" begin
c = Polymake.polytope.cube(2, 1, 0)
aut = Polymake.graph.automorphisms(c.VERTICES_IN_FACETS)
@test length(aut) == 2
@test aut isa Polymake.Array{Polymake.StdPair{Polymake.Array{Polymake.to_cxx_type(Int64)}, Polymake.Array{Polymake.to_cxx_type(Int64)}}}
for p in aut
@test p isa Polymake.StdPair{Polymake.Array{Polymake.to_cxx_type(Int64)}, Polymake.Array{Polymake.to_cxx_type(Int64)}}
@test first(p) isa Polymake.Array{Polymake.to_cxx_type(Int64)}
@test last(p) isa Polymake.Array{Polymake.to_cxx_type(Int64)}
end
end
end

2 comments on commit 99327b1

@benlorenz
Copy link
Member

Choose a reason for hiding this comment

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

@JuliaRegistrator: register()

@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/70205

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.8.1 -m "<description of version>" 99327b17f3378b1539916eb3ec51e6647d2b94be
git push origin v0.8.1

Please sign in to comment.