Skip to content

Commit

Permalink
Allow Groups of order > 2^15 in conformance test
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Feb 10, 2024
1 parent d6e0bc1 commit d349be4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions test/Groups-conformance-tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ function test_Group_interface(G::Group)

@testset "order, rand" begin
if is_finite(G)
@test order(Int16, G) isa Int16
@test order(BigInt, G) isa BigInt
ord = order(BigInt, G)
@test ord isa BigInt
if ord < typemax(Int16)
@test order(Int16, G) isa Int16
else
@test_throws InexactError order(Int16, G)
end
@test order(G) >= 1
@test is_trivial(G) == (order(G) == 1)
else
Expand Down
2 changes: 1 addition & 1 deletion test/generic/PermGroupAPI-test.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@testset "GroupsCore API PermGroup" begin

include(joinpath(dirname(dirname(pathof(AbstractAlgebra))), "test", "Groups-conformance-tests.jl"))
@testset "Sym($n)" for n in [1,2,5]
@testset "Sym($n)" for n in [1,2,5,10]
G = SymmetricGroup(n)
test_Group_interface(G)
test_GroupElem_interface(rand(G, 2)...)
Expand Down

0 comments on commit d349be4

Please sign in to comment.