def test_add_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 = (18, 21, 24, 27, 30)
     op = blocks.add_ii(5)
     self.help_ii(5, (src1_data, src2_data, src3_data), expected_result, op)
示例#2
0
 def test_add_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 = [18, 21, 24, 27, 30]
     op = blocks.add_ii(5)
     self.help_ii(5, (src1_data, src2_data, src3_data), expected_result, op)
 def test_add_vii_one(self):
     src1_data = (1, )
     src2_data = (2, )
     src3_data = (3, )
     expected_result = (6, )
     op = blocks.add_ii(1)
     self.help_ii(1, (src1_data, src2_data, src3_data), expected_result, op)
示例#4
0
    def test_add_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 = (18, 21, 24, 27, 30)
	op = blocks.add_ii(5)
	self.help_ii(5, (src1_data, src2_data, src3_data), expected_result, op)
示例#5
0
    def test_add_vii_one(self):
	src1_data = (1,)
	src2_data = (2,)
	src3_data = (3,)
	expected_result = (6,)
	op = blocks.add_ii(1)
	self.help_ii(1, (src1_data, src2_data, src3_data), expected_result, op)
示例#6
0
 def test_add_vii_one(self):
     src1_data = [
         1,
     ]
     src2_data = [
         2,
     ]
     src3_data = [
         3,
     ]
     expected_result = [
         6,
     ]
     op = blocks.add_ii(1)
     self.help_ii(1, (src1_data, src2_data, src3_data), expected_result, op)
示例#7
0
 def test_add_ii(self):
     src1_data = (1, 2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     expected_result = (9, -1, 7, 12, 7)
     op = blocks.add_ii()
     self.help_ii((src1_data, src2_data), expected_result, op)
 def test_add_ii(self):
     src1_data = [1,  2, 3, 4, 5]
     src2_data = [8, -3, 4, 8, 2]
     expected_result = [9, -1, 7, 12, 7]
     op = blocks.add_ii()
     self.help_ii((src1_data, src2_data), expected_result, op)
 def test_add_ii(self):
     src1_data = (1,  2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     expected_result = (9, -1, 7, 12, 7)
     op = blocks.add_ii()
     self.help_ii((src1_data, src2_data), expected_result, op)