Skip to content

Commit

Permalink
Trac #11582: Allow for randomness in permgroup.py test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Jul 11, 2011
1 parent bd9ac52 commit 4896976
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/sage/groups/perm_gps/permgroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2347,11 +2347,21 @@ def isomorphism_to(self, right):
True
sage: G = PermutationGroup([(1,2,3), (2,3)])
sage: H = PermutationGroup([(1,2,4), (1,4)])
sage: G.isomorphism_to(H)
sage: G.isomorphism_to(H) # not tested, see below
Permutation group morphism:
From: Permutation Group with generators [(2,3), (1,2,3)]
To: Permutation Group with generators [(1,2,4), (1,4)]
Defn: [(2,3), (1,2,3)] -> [(2,4), (1,2,4)]
TESTS:
Partial check that the output makes some sense::
sage: G.isomorphism_to(H)
Permutation group morphism:
From: Permutation Group with generators [(2,3), (1,2,3)]
To: Permutation Group with generators [(1,2,4), (1,4)]
Defn: [(2,3), (1,2,3)] -> [...]
"""
current_randstate().set_seed_gap()
if not isinstance(right, PermutationGroup_generic):
Expand Down

0 comments on commit 4896976

Please sign in to comment.