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
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)
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)
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