コード例 #1
0
    def test_add_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 = (18, 21, 24, 27, 30)
	op = blocks_swig.add_ss(5)
	self.help_ss(5, (src1_data, src2_data, src3_data), expected_result, op)
コード例 #2
0
    def test_add_vss_one(self):
	src1_data = (1,)
	src2_data = (2,)
	src3_data = (3,)
	expected_result = (6,)
	op = blocks_swig.add_ss(1)
	self.help_ss(1, (src1_data, src2_data, src3_data), expected_result, op)
コード例 #3
0
 def test_add_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 = (18, 21, 24, 27, 30)
     op = blocks_swig.add_ss(5)
     self.help_ss(5, (src1_data, src2_data, src3_data), expected_result, op)
コード例 #4
0
 def test_add_vss_one(self):
     src1_data = (1, )
     src2_data = (2, )
     src3_data = (3, )
     expected_result = (6, )
     op = blocks_swig.add_ss(1)
     self.help_ss(1, (src1_data, src2_data, src3_data), expected_result, op)
コード例 #5
0
 def test_add_ss(self):
     src1_data = (1,  2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     expected_result = (9, -1, 7, 12, 7)
     op = blocks_swig.add_ss()
     self.help_ss((src1_data, src2_data), expected_result, op)
コード例 #6
0
 def test_add_ss(self):
     src1_data = (1, 2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     expected_result = (9, -1, 7, 12, 7)
     op = blocks_swig.add_ss()
     self.help_ss((src1_data, src2_data), expected_result, op)