def test_or_ss_2i (self):
     src1_data =       (1,  2,  3,  0x5004,   0x1150)
     src2_data =       (8,  2,  1 , 0x0508,   0x1105)
     expected_result = (9,  2,  3,  0x550C,   0x1155)
     op = gr.or_ss (2)
     self.help_ss ((src1_data, src2_data),
                   expected_result, op, port_prefix='short_in_')
示例#2
0
 def test_or_ss (self):
     src1_data =       (1,  2,  3,  0x5004,   0x1150)
     src2_data =       (8,  2,  1 , 0x0508,   0x1105)
     expected_result = (9,  2,  3,  0x550C,   0x1155)
     op = gr.or_ss ()
     self.help_ss ((src1_data, src2_data),
                   expected_result, op)
 def test_or_ss_3i (self):
     src1_data =       (1,  2, 2,  3,  0x04,   0x50)
     src2_data =       (8,  2, 2,  1 , 0x08,   0x05)
     src3_data =       (8,  2, 1,  1 , 0x08,   0x05)
     expected_result = (9,  2, 3,  3,  0x0C,   0x55)
     op = gr.or_ss (3)
     self.help_ss ((src1_data, src2_data, src3_data),
                   expected_result, op, port_prefix='short_in_')
 def test_or_ss_2i(self):
     src1_data = (1, 2, 3, 0x5004, 0x1150)
     src2_data = (8, 2, 1, 0x0508, 0x1105)
     expected_result = (9, 2, 3, 0x550C, 0x1155)
     op = gr.or_ss(2)
     self.help_ss((src1_data, src2_data),
                  expected_result,
                  op,
                  port_prefix='short_in_')
 def test_or_ss_3i(self):
     src1_data = (1, 2, 2, 3, 0x04, 0x50)
     src2_data = (8, 2, 2, 1, 0x08, 0x05)
     src3_data = (8, 2, 1, 1, 0x08, 0x05)
     expected_result = (9, 2, 3, 3, 0x0C, 0x55)
     op = gr.or_ss(3)
     self.help_ss((src1_data, src2_data, src3_data),
                  expected_result,
                  op,
                  port_prefix='short_in_')