def test_change_base_redundancy(self): cf = lambda x: Permutation.read_cycle_form(x,6) a = cf([[1,2,3,4],[5,6]]) b = cf([[1,2]]) G = PermGroup([a,b]) G.change_base([5,6,1,2,3,4]) self.assertEqual(G.base[:4],[5,6,1,2])
def test_change_base(self): cf = Permutation.read_cycle_form a = cf([[2,3],[4,6],[5,8],[9,11]], 13) b = cf([[1,2,4,7,9,3,5,6,8,10,11,12,13]], 13) G = PermGroup([a,b]) G.change_base([1,3]) self.assertEqual(G.base[:2], [1,3])