Exemplo n.º 1
0
def test_generate_configurations_2():
    assert sp.generate_configurations([1, 2, 3]) == [(1, 1), (1, 2), (1, 3),
                                                     (2, 1), (
                                                         2,
                                                         2,
                                                     ), (2, 3), (3, 1), (3, 2),
                                                     (3, 3)]
Exemplo n.º 2
0
def test_generate_configurations_3():
    assert sp.generate_configurations("ab", n=3) == [('a', 'a', 'a'),
                                                     ('a', 'a', 'b'),
                                                     ('a', 'b', 'a'),
                                                     ('a', 'b', 'b'),
                                                     ('b', 'a', 'a'),
                                                     ('b', 'a', 'b'),
                                                     ('b', 'b', 'a'),
                                                     ('b', 'b', 'b')]
Exemplo n.º 3
0
def test_generate_configurations_1():
    assert sp.generate_configurations([]) == []