Skip to content

Commit

Permalink
remove rand_pseudo
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek committed Dec 7, 2023
1 parent 49a9341 commit 1fe60a6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/groups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,3 @@ function ngens(G::Group)
"Group does not seem to have generators. Did you alter `hasgens(::$(typeof(G)))`?",
)
end

rand_pseudo(G::Group, args...) = rand_pseudo(Random.GLOBAL_RNG, G, args...)
rand_pseudo(rng::Random.AbstractRNG, G::Group, args...) = rand(rng, G, args...)
6 changes: 0 additions & 6 deletions test/conformance_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ function test_Group_interface(G::Group)
@test rand(G, 2) isa AbstractVector{eltype(G)}
g, h = rand(G, 2)
@test parent(g) === parent(h) === G

@test GroupsCore.rand_pseudo(G) isa eltype(G)
@test GroupsCore.rand_pseudo(G, 2, 2) isa AbstractMatrix{eltype(G)}

g, h = GroupsCore.rand_pseudo(G, 2)
@test parent(g) === parent(h) === G
end
end
end
Expand Down
2 changes: 0 additions & 2 deletions test/test_notsatisfied.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ end

@test_throws INI gens(G, 1)
@test_throws INI ngens(G)

@test_throws INI GroupsCore.rand_pseudo(G, 2, 2)
end

@testset "GroupElem Interface" begin
Expand Down

0 comments on commit 1fe60a6

Please sign in to comment.