コード例 #1
0
def test_smallest_factor2():
    assert gp1.smallest_factor(2) == 2
コード例 #2
0
def test_smallest_factor1():
    assert gp1.smallest_factor(1) == 1
コード例 #3
0
def test_smallest_factor6():
    assert gp1.smallest_factor(0) == None, "expect None"
コード例 #4
0
def test_smallest_factor5():
    assert gp1.smallest_factor(5.7) == None, "expect None"
コード例 #5
0
def test_smallest_factor4():
    assert gp1.smallest_factor(4) == 2
コード例 #6
0
def test_smallest_factor3():
    assert gp1.smallest_factor(3) == 3