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