Esempio n. 1
0
def test_num_permutations():
    assert (num_permutations(n=20, k=8, with_replacement=False) == 5079110400)
    assert (num_permutations(n=20, k=8, with_replacement=True) == 25600000000)
Esempio n. 2
0
def test_num_permutations():
    assert(num_permutations(n=20, r=8, with_replacement=False) == 5079110400)
    assert(num_permutations(n=20, r=8, with_replacement=True) == 25600000000)