示例#1
0
def test_type_string():
    with pytest.raises(TypeError):
        hcd('18')
示例#2
0
def test_type_arr():
    with pytest.raises(TypeError):
        hcd([18])
示例#3
0
def test_expected_output_large():
    assert hcd(145) == [145, 596, 739]
示例#4
0
def test_expected_output_three():
    assert hcd(3) == [3, 28, 29]
示例#5
0
def test_expected_output_two():
    assert hcd(2) == [2, 24, 24]
示例#6
0
def test_expected_output_one():
    assert hcd(1) == [1,15,15]
示例#7
0
def test_type_dict():
    with pytest.raises(TypeError):
        hcd({'years': 18, 'animal': 'dog'})