示例#1
0
 def test_sum(self):
     self.assertEqual(sum(5, 5), 10)
示例#2
0
def test_sum(param_a, param_b, expected):
    assert (code.sum(param_a, param_b), expected)
示例#3
0
def test_sum():
    assert (code.sum(1, 2), 3)
示例#4
0
import code
a=[[3,5,7],[8,10,12]]
b=code.sum(a)
print(a)
print(b)