From 1fe60a65ef5a4d621b89db36a296390819c6b739 Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Thu, 7 Dec 2023 02:52:31 +0100 Subject: [PATCH] remove rand_pseudo --- src/groups.jl | 3 --- test/conformance_test.jl | 6 ------ test/test_notsatisfied.jl | 2 -- 3 files changed, 11 deletions(-) diff --git a/src/groups.jl b/src/groups.jl index 1aa57bd..37fb60e 100644 --- a/src/groups.jl +++ b/src/groups.jl @@ -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...) diff --git a/test/conformance_test.jl b/test/conformance_test.jl index 36e5e73..e0efd7b 100644 --- a/test/conformance_test.jl +++ b/test/conformance_test.jl @@ -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 diff --git a/test/test_notsatisfied.jl b/test/test_notsatisfied.jl index 9a4221b..ea59e9d 100644 --- a/test/test_notsatisfied.jl +++ b/test/test_notsatisfied.jl @@ -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