Esempio n. 1
0
def test_partitions2():
    bells = [1, 1, 2, 5, 15, 52]
    for i, b in enumerate(bells):
        parts = list(partitions(range(i), tuples=True))
        assert len(parts) == b
Esempio n. 2
0
def test_partitions1():
    bells = [1, 1, 2, 5, 15, 52]
    for i, b in enumerate(bells):
        parts = list(partitions(range(i)))
        assert_equal(len(parts), b)
Esempio n. 3
0
def test_partitions2():
    bells = [1, 1, 2, 5, 15, 52]
    for i, b in enumerate(bells):
        parts = list(partitions(range(i), tuples=True))
        assert_equal(len(parts), b)
Esempio n. 4
0
def test_partitions1():
    bells = [1, 1, 2, 5, 15, 52]
    for i, b in enumerate(bells):
        parts = list(partitions(range(i)))
        assert len(parts) == b