def test_sum_mul_2_3_mul_2_3(self):
     self.assertEqual(summing(multiply(2, 3), multiply(2, 3)), 12)
 def test_string_a_3(self):
     self.assertEqual(multiply('a', 3), 'aaa')
 def test_number_3_4(self):
     self.assertEqual(multiply(3, 4), 12)
示例#4
0
def test_multiply_n():
    assert multiply('baka~', 3) == 'baka~baka~baka~'
示例#5
0
def test_multiply():
    assert multiply(2, 3) == 6
示例#6
0
def test_mul_sum():
    assert summing(multiply(2, 3), multiply(2, 3)) == 12