def test_div_ss_2 (self):
     src1_data       = ( 5,  9, -15, 1024)
     src2_data       = (10,  3,  -5,   64)
     expected_result = (0, 3,   3,   16)
     op = gr.divide_ss (2)
     self.help_ss ((src1_data, src2_data),
                   expected_result, op, port_prefix='short_in_')
示例#2
0
 def test_div_ss_1(self):
     src1_data = (1, 2, 4, -8, -1)
     expected_result = (1, 0, 0, 0, -1)
     op = gr.divide_ss(1)
     self.help_ss((src1_data, ),
                  expected_result,
                  op,
                  port_prefix='SINGLE_PORT')
 def test_div_ss_4 (self):
     src1_data       = ( 5,  9, -15, 1024)
     src2_data       = (10,  3,  -5,   64)
     src3_data       = (1,   2,  -1,   -4)
     src4_data       = (1,   -2,  3,   -2)
     expected_result = (0,   0,  -1,   2)
     op = gr.divide_ss (4)
     self.help_ss ((src1_data, src2_data, src3_data, src4_data),
                   expected_result, op, port_prefix='short_in_')
示例#4
0
 def test_div_ss_2(self):
     src1_data = (5, 9, -15, 1024)
     src2_data = (10, 3, -5, 64)
     expected_result = (0, 3, 3, 16)
     op = gr.divide_ss(2)
     self.help_ss((src1_data, src2_data),
                  expected_result,
                  op,
                  port_prefix='short_in_')
示例#5
0
 def test_div_ss_4(self):
     src1_data = (5, 9, -15, 1024)
     src2_data = (10, 3, -5, 64)
     src3_data = (1, 2, -1, -4)
     src4_data = (1, -2, 3, -2)
     expected_result = (0, 0, -1, 2)
     op = gr.divide_ss(4)
     self.help_ss((src1_data, src2_data, src3_data, src4_data),
                  expected_result,
                  op,
                  port_prefix='short_in_')
 def test_div_ss_1 (self):
     src1_data       = (1,  2,  4,    -8, -1)
     expected_result = (1, 0, 0, 0, -1)
     op = gr.divide_ss (1)
     self.help_ss ((src1_data,),
                   expected_result, op, port_prefix='SINGLE_PORT')