def test_strings_sym():
    """testing func 'itr'(symbols '!@#$')"""
    print('test_strings_!@#$  <============================ actual test code')
    assert fp.itr('!@#$') == "You gave wrong input. Try again."
示例#2
0
def test_itr(inputs, outputs):
    """Tests for negative results"""
    assert friend_pairs.itr(inputs) == outputs
def test_strings_m4():
    """testing func 'itr'(number -4)"""
    print('test_strings_-4  <============================ actual test code')
    assert fp.itr('-4') == "You gave wrong input. Try again."
def test_strings_3():
    """testing func 'itr'(number 3)"""
    print('test_strings_3  <============================ actual test code')
    assert fp.itr('3') == 4
def test_numbers_5():
    """testing func 'itr'(number 5)"""
    print('test_numbers_5  <============================ actual test code')
    assert fp.itr('5') == 26
示例#6
0
def test_itr_negative(inputs, outputs):
    """Tests for negative results"""
    assert fp.itr(inputs) == outputs
示例#7
0
def test_itr_positive(inputs, outputs):
    """Tests for positive results"""
    assert fp.itr(inputs) == outputs