Ejemplo n.º 1
0
 def test_multiply_ss(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_ss()
     self.help_ss((src1_data, src2_data),
                   expected_result, op)
Ejemplo n.º 2
0
 def test_multiply_vss_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_ss(5)
     self.help_ss(5, (src1_data, src2_data, src3_data), expected_result, op)
Ejemplo n.º 3
0
 def test_multiply_ss(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_ss()
     self.help_ss((src1_data, src2_data),
                   expected_result, op)
 def test_multiply_ss(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_ss()
     self.help_ss((src1_data, src2_data),
                   expected_result, op)
Ejemplo n.º 5
0
 def test_multiply_vss_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_ss(5)
     self.help_ss(5, (src1_data, src2_data, src3_data), expected_result, op)
Ejemplo n.º 6
0
 def test_multiply_vss_one(self):
     src1_data = (1, )
     src2_data = (2, )
     src3_data = (3, )
     expected_result = (6, )
     op = blocks.multiply_ss(1)
     self.help_ss(1, (src1_data, src2_data, src3_data), expected_result, op)
Ejemplo n.º 7
0
    def test_multiply_vss_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_ss(5)
	self.help_ss(5, (src1_data, src2_data, src3_data), expected_result, op)
Ejemplo n.º 8
0
    def test_multiply_vss_one(self):
	src1_data = (1,)
	src2_data = (2,)
	src3_data = (3,)
	expected_result = (6,)
	op = blocks.multiply_ss(1)
	self.help_ss(1, (src1_data, src2_data, src3_data), expected_result, op)
Ejemplo n.º 9
0
 def test_multiply_vss_one(self):
     src1_data = [
         1,
     ]
     src2_data = [
         2,
     ]
     src3_data = [
         3,
     ]
     expected_result = [
         6,
     ]
     op = blocks.multiply_ss(1)
     self.help_ss(1, (src1_data, src2_data, src3_data), expected_result, op)