Exemple #1
0
def test_calc_total():
    total = mathlib.calc_total(4,5)
    assert total == 9
def test_calc_total():
    assert mathlib.calc_total(4, 5) == 9
    assert mathlib.calc_total(7, 3) == 10
    assert mathlib.calc_total(10, 10) >= 15
Exemple #3
0
def test_calc_total():
    total = mathlib.calc_total(5, 6)
    assert total == 11
def test_calc_total_string():
    result = mathlib.calc_total('Hello', ' World')
    assert result == 'Hello World'
    assert type(result) is str
    assert 'Heldo' not in result
Exemple #5
0
def test_calc_total():
	total = mathlib.calc_total(4,5)
	assert total == 9	# total should be 9
def test_calc_total():
    total = mathlib.calc_total(5,4)
    assert total == 9
Exemple #7
0
def test_calc_total_par(num1, num2, res):
    assert mathlib.calc_total(num1, num2) == res
 def test_calc_total(self):
     result = mathlib.calc_total(4, 5)
     assert result == 9