def test_xor_ss_2i (self):
     src1_data =       (1,  2,  3,  0x5004,   0x1150)
     src2_data =       (8,  2,  1 , 0x0508,   0x1105)
     expected_result = (9,  0,  2,  0x550C,   0x0055)
     op = gr.xor_ss (2)
     self.help_ss ((src1_data, src2_data),
                   expected_result, op, port_prefix='short_in_')
Пример #2
0
 def test_xor_ss (self):
     src1_data =       (1,  2,  3,  0x5004,   0x1150)
     src2_data =       (8,  2,  1 , 0x0508,   0x1105)
     expected_result = (9,  0,  2,  0x550C,   0x0055)
     op = gr.xor_ss ()
     self.help_ss ((src1_data, src2_data),
                   expected_result, op)
 def test_xor_ss_3i (self):
     src1_data =       (1,  2,  3,  4,    0x50)
     src2_data =       (8,  2,  1 , 8,    0x05)
     src3_data =       (2,  2,  15 , 0,   0x1100)
     expected_result = (11, 2,  13,  0xC, 0x1155)
     op = gr.xor_ss (3)
     self.help_ss ((src1_data, src2_data, src3_data),
                   expected_result, op, port_prefix='short_in_')
 def test_xor_ss_2i(self):
     src1_data = (1, 2, 3, 0x5004, 0x1150)
     src2_data = (8, 2, 1, 0x0508, 0x1105)
     expected_result = (9, 0, 2, 0x550C, 0x0055)
     op = gr.xor_ss(2)
     self.help_ss((src1_data, src2_data),
                  expected_result,
                  op,
                  port_prefix='short_in_')
 def test_xor_ss_3i(self):
     src1_data = (1, 2, 3, 4, 0x50)
     src2_data = (8, 2, 1, 8, 0x05)
     src3_data = (2, 2, 15, 0, 0x1100)
     expected_result = (11, 2, 13, 0xC, 0x1155)
     op = gr.xor_ss(3)
     self.help_ss((src1_data, src2_data, src3_data),
                  expected_result,
                  op,
                  port_prefix='short_in_')