def test_soma(): assert soma(5, 5) == 10 assert soma(-17, 6) == -11 assert soma(-22, -57) == -79 assert soma(-63.4, 148.68) == 85.28 assert soma('2', '15') == 17 assert soma('F', 90) == None
def test_soma1(): assert soma(1, 1) == 2 assert soma(-1, -2) == -3 assert soma(-1, 3) == 2 assert soma(1.2, 2.3) == 3.5 assert soma(2, 2) == 4 assert soma('2', 2) == 4
def test_soma(a,b, expected): assert soma(a,b) == expected
def test_soma(): assert soma(2,2) == 4 assert soma('2','2') == 4
def test_dobro(a, expected): assert soma(a) == expected