def test_multiply_ii(self):
     src1_data = (1,  2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     expected_result = (8, -6, 12, 32, 10)
     op = blocks.multiply_ii()
     self.help_ii((src1_data, src2_data),
                   expected_result, op)
示例#2
0
 def test_multiply_vii_five(self):
     src1_data = [1, 2, 3, 4, 5]
     src2_data = [6, 7, 8, 9, 10]
     src3_data = [11, 12, 13, 14, 15]
     expected_result = [66, 168, 312, 504, 750]
     op = blocks.multiply_ii(5)
     self.help_ii(5, (src1_data, src2_data, src3_data), expected_result, op)
 def test_multiply_ii(self):
     src1_data = [1,  2, 3, 4, 5]
     src2_data = [8, -3, 4, 8, 2]
     expected_result = [8, -6, 12, 32, 10]
     op = blocks.multiply_ii()
     self.help_ii((src1_data, src2_data),
                   expected_result, op)
 def test_multiply_ii(self):
     src1_data = (1,  2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     expected_result = (8, -6, 12, 32, 10)
     op = blocks.multiply_ii()
     self.help_ii((src1_data, src2_data),
                   expected_result, op)
 def test_multiply_vii_five(self):
     src1_data = (1, 2, 3, 4, 5)
     src2_data = (6, 7, 8, 9, 10)
     src3_data = (11, 12, 13, 14, 15)
     expected_result = (66, 168, 312, 504, 750)
     op = blocks.multiply_ii(5)
     self.help_ii(5, (src1_data, src2_data, src3_data), expected_result, op)
 def test_multiply_vii_one(self):
     src1_data = (1, )
     src2_data = (2, )
     src3_data = (3, )
     expected_result = (6, )
     op = blocks.multiply_ii(1)
     self.help_ii(1, (src1_data, src2_data, src3_data), expected_result, op)
示例#7
0
    def test_multiply_vii_five(self):
	src1_data = (1, 2, 3, 4, 5)
	src2_data = (6, 7, 8, 9, 10)
	src3_data = (11, 12, 13, 14, 15)
	expected_result = (66, 168, 312, 504, 750)
	op = blocks.multiply_ii(5)
	self.help_ii(5, (src1_data, src2_data, src3_data), expected_result, op)
示例#8
0
    def test_multiply_vii_one(self):
	src1_data = (1,)
	src2_data = (2,)
	src3_data = (3,)
	expected_result = (6,)
	op = blocks.multiply_ii(1)
	self.help_ii(1, (src1_data, src2_data, src3_data), expected_result, op)
示例#9
0
 def test_multiply_vii_one(self):
     src1_data = [
         1,
     ]
     src2_data = [
         2,
     ]
     src3_data = [
         3,
     ]
     expected_result = [
         6,
     ]
     op = blocks.multiply_ii(1)
     self.help_ii(1, (src1_data, src2_data, src3_data), expected_result, op)