def test_div_ii_2 (self):
     src1_data       = ( 5,  9, -15, 1024)
     src2_data       = (10,  3,  -5,   64)
     expected_result = (0,   3,   3,   16)
     op = gr.divide_ii (2)
     self.help_ii ((src1_data, src2_data),
                   expected_result, op, port_prefix='long_in_')
Exemple #2
0
 def test_div_ii_1(self):
     src1_data = (1, 2, 4, -8, -1)
     expected_result = (1, 0, 0, 0, -1)
     op = gr.divide_ii(1)
     self.help_ii((src1_data, ),
                  expected_result,
                  op,
                  port_prefix='SINGLE_PORT')
 def test_div_ii_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_ii (4)
     self.help_ii ((src1_data, src2_data, src3_data, src4_data),
                   expected_result, op, port_prefix='long_in_')
Exemple #4
0
 def test_div_ii_2(self):
     src1_data = (5, 9, -15, 1024)
     src2_data = (10, 3, -5, 64)
     expected_result = (0, 3, 3, 16)
     op = gr.divide_ii(2)
     self.help_ii((src1_data, src2_data),
                  expected_result,
                  op,
                  port_prefix='long_in_')
Exemple #5
0
 def test_div_ii_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_ii(4)
     self.help_ii((src1_data, src2_data, src3_data, src4_data),
                  expected_result,
                  op,
                  port_prefix='long_in_')
 def test_div_ii_1 (self):
     src1_data       = (1,  2,  4,    -8, -1)
     expected_result = (1,  0,  0,    0,   -1)
     op = gr.divide_ii (1)
     self.help_ii ((src1_data,),
                   expected_result, op, port_prefix='SINGLE_PORT')