Exemple #1
0
def test_calc_multiply():
    result = mathlib.calc_multiply(10,3)
    assert result == 30
def test_calc_muliply_string():
    assert mathlib.calc_multiply('Hello ', 3) == 'Hello Hello Hello '
    res = mathlib.calc_multiply('Hello ', 2)
    assert res == 'Hello Hello '
    assert type(res) is str
    assert 'Hello' in res
def test_calc_muliply():
    assert mathlib.calc_multiply(10, 3) == 30
    assert mathlib.calc_multiply(5, 5) == 25
Exemple #4
0
def test_calc_multiply():
    total = mathlib.calc_multiply(10, 3)
    assert total == 30
def test_cal_multiply():
    result = mathlib.calc_multiply(2,7)
    assert result == 14
Exemple #6
0
def test_calc_multiply():
    total = mathlib.calc_multiply(3, 5)
    assert total == 15