Exemplo n.º 1
0
 def test_stream_args_channel_foo(self):
     """
     Try to manipulate the stream args channels for proper swig'ing checks.
     """
     # FYI: stream_args_t.channels.append does not work due to copy operation of STL vectors
     sa = uhd.stream_args_t()
     sa.channels = [1, 0]
     print(sa.channels)
     self.assertEqual(len(sa.channels), 2)
     self.assertEqual(sa.channels[0], 1)
     self.assertEqual(sa.channels[1], 0)
Exemplo n.º 2
0
 def test_stream_args_channel_foo(self):
     """
     Try to manipulate the stream args channels for proper swig'ing checks.
     """
     sa = uhd.stream_args_t()
     sa.channels.append(1)
     sa.channels.append(0)
     print sa.channels
     self.assertEqual(len(sa.channels), 2)
     self.assertEqual(sa.channels[0], 1)
     self.assertEqual(sa.channels[1], 0)
Exemplo n.º 3
0
 def test_stream_args_channel_foo(self):
     """
     Try to manipulate the stream args channels for proper swig'ing checks.
     """
     sa = uhd.stream_args_t()
     sa.channels.append(1)
     sa.channels.append(0)
     print sa.channels
     self.assertEqual(len(sa.channels), 2)
     self.assertEqual(sa.channels[0], 1)
     self.assertEqual(sa.channels[1], 0)
Exemplo n.º 4
0
 def test_stream_args_channel_foo(self):
     """
     Try to manipulate the stream args channels for proper swig'ing checks.
     """
     # FIXME: stream_args_t.channels.append does not work due to copy operation of STL vectors
     # Needs to either change API, remove QA test, or somehow remap append()
     sa = uhd.stream_args_t()
     sa.channels.append(1)
     sa.channels.append(0)
     print(sa.channels)
     self.assertEqual(len(sa.channels), 2)
     self.assertEqual(sa.channels[0], 1)
     self.assertEqual(sa.channels[1], 0)