Skip to content

Commit

Permalink
Merge pull request #459 from oscar-system/lk/switch_table
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz authored Oct 18, 2023
2 parents 32b660d + ac5a9fb commit bb04010
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ SparseArrays = "^1.6"
TOPCOM_jll = "~0.17.8"
julia = "^1.6"
lib4ti2_jll = "^1.6.10"
libpolymake_julia_jll = "~0.10.3"
libpolymake_julia_jll = "~0.10.6"
polymake_jll = "^400.900.0"
polymake_oscarnumber_jll = "~0.2.7"
23 changes: 23 additions & 0 deletions test/groups.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@testset verbose=true "Polymake.Group" begin
@testset verbose=true "Polymake.SwitchTable" begin
ggens = [[1,2,0,4,5,3], [2,1,0,5,4,3]]
gp = Polymake.group.PermutationAction(GENERATORS=ggens)
sw = Polymake.SwitchTable(gp.ALL_GROUP_ELEMENTS)

v1 = convert(Polymake.PolymakeType, [64,64,64,0,0,0])
min1 = Polymake.lex_minimize_vector(sw, v1)
max1 = Polymake.lex_maximize_vector(sw, v1)
@test min1 == max1
@test first(min1) == v1
@test first(max1) == v1
@test first(min1) == Polymake.group.action_inv(last(min1), v1)
@test first(max1) == Polymake.group.action_inv(last(max1), v1)

v2 = convert(Polymake.PolymakeType, [32,36,44,48,32,0])
min2 = Polymake.lex_minimize_vector(sw, v2)
max2 = Polymake.lex_maximize_vector(sw, v2)
@test first(min2) == v2
@test first(min2) == Polymake.group.action_inv(last(min2), v2)
@test first(max2) == Polymake.group.action_inv(last(max2), v2)
end
end
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ include("lists.jl")
include("map.jl")
include("graphs.jl")
include("homologygroup.jl")
include("groups.jl")
if get(ENV, "POLYDB_TEST_URI", "") != ""
include("polydb.jl")
end
Expand Down

2 comments on commit bb04010

@benlorenz
Copy link
Member Author

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/93701

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.11.7 -m "<description of version>" bb04010c145f9de8e485ed47c721d08bee50e443
git push origin v0.11.7

Please sign in to comment.