Exemple #1
0
def test_strong_gens_from_distr():
    strong_gens_distr = [[Permutation([0, 2, 1]), Permutation([1, 2, 0]),
                  Permutation([1, 0, 2])], [Permutation([0, 2, 1])]]
    assert _strong_gens_from_distr(strong_gens_distr) == \
                                                     [Permutation([0, 2, 1]),
                                                     Permutation([1, 2, 0]),
                                                     Permutation([1, 0, 2])]
Exemple #2
0
def test_strong_gens_from_distr():
    strong_gens_distr = [[Permutation([0, 2, 1]), Permutation([1, 2, 0]),\
                  Permutation([1, 0, 2])], [Permutation([0, 2, 1])]]
    assert _strong_gens_from_distr(strong_gens_distr) ==\
                                                     [Permutation([0, 2, 1]),\
                                                     Permutation([1, 2, 0]),\
                                                     Permutation([1, 0, 2])]