예제 #1
0
def test_calc_total():
    total = mathlib.calc_total(4,5)
    assert total == 9
예제 #2
0
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
예제 #3
0
def test_calc_total():
    total = mathlib.calc_total(5, 6)
    assert total == 11
예제 #4
0
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
예제 #5
0
def test_calc_total():
	total = mathlib.calc_total(4,5)
	assert total == 9	# total should be 9
예제 #6
0
def test_calc_total():
    total = mathlib.calc_total(5,4)
    assert total == 9
예제 #7
0
def test_calc_total_par(num1, num2, res):
    assert mathlib.calc_total(num1, num2) == res
예제 #8
0
 def test_calc_total(self):
     result = mathlib.calc_total(4, 5)
     assert result == 9