def test_sub_ss_2 (self):
     src1_data = (1,  2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     expected_result = (-7, 5, -1, -4, 3)
     op = gr.sub_ss (2)
     self.help_ss ((src1_data, src2_data),
                   expected_result, op, port_prefix='short_in_')
 def test_sub_ss_3 (self):
     src1_data = (1,  2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     src3_data = (-8, 3, 4, -8, -2)
     expected_result = (1, 2, -5, 4, 5)
     op = gr.sub_ss (3)
     self.help_ss ((src1_data, src2_data, src3_data),
                   expected_result, op, port_prefix='short_in_')
예제 #3
0
 def test_sub_ss_1(self):
     src1_data = (1, -2, 3, -4, 5)
     expected_result = (-1, 2, -3, 4, -5)
     op = gr.sub_ss(1)
     self.help_ss((src1_data, ),
                  expected_result,
                  op,
                  port_prefix='SINGLE_PORT')
 def test_sub_ss_4 (self):
     src1_data = (1,  2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     src3_data = (-8, 3, 4, -8, -2)
     src4_data = (-1, 2, 3, -4, -5)
     expected_result = (2, 0, -8, 8, 10)
     op = gr.sub_ss (4)
     self.help_ss ((src1_data, src2_data, src3_data, src4_data),
                   expected_result, op, port_prefix='short_in_')
예제 #5
0
 def test_sub_ss_2(self):
     src1_data = (1, 2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     expected_result = (-7, 5, -1, -4, 3)
     op = gr.sub_ss(2)
     self.help_ss((src1_data, src2_data),
                  expected_result,
                  op,
                  port_prefix='short_in_')
예제 #6
0
 def test_sub_ss_3(self):
     src1_data = (1, 2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     src3_data = (-8, 3, 4, -8, -2)
     expected_result = (1, 2, -5, 4, 5)
     op = gr.sub_ss(3)
     self.help_ss((src1_data, src2_data, src3_data),
                  expected_result,
                  op,
                  port_prefix='short_in_')
예제 #7
0
 def test_sub_ss_4(self):
     src1_data = (1, 2, 3, 4, 5)
     src2_data = (8, -3, 4, 8, 2)
     src3_data = (-8, 3, 4, -8, -2)
     src4_data = (-1, 2, 3, -4, -5)
     expected_result = (2, 0, -8, 8, 10)
     op = gr.sub_ss(4)
     self.help_ss((src1_data, src2_data, src3_data, src4_data),
                  expected_result,
                  op,
                  port_prefix='short_in_')
 def test_sub_ss_1 (self):
     src1_data = (1,  -2, 3, -4, 5)
     expected_result = (-1, 2, -3, 4, -5)
     op = gr.sub_ss (1)
     self.help_ss ((src1_data,),
                   expected_result, op, port_prefix='SINGLE_PORT')