コード例 #1
0
def test_bad_from_left_lehmer():
    with pytest.raises(ValueError):
        Permutation.from_left_lehmer(-1)
コード例 #2
0
def test_from_left_lehmer(p, code):
    assert Permutation.from_left_lehmer(code) == p