File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -36,5 +36,17 @@ def test_000_nop (self):
36
36
They may not have a UHD device connected, etc. Don't try to run anything"""
37
37
pass
38
38
39
+ def test_stream_args_channel_foo (self ):
40
+ """
41
+ Try to manipulate the stream args channels for proper swig'ing checks.
42
+ """
43
+ sa = uhd_swig .stream_args_t ()
44
+ sa .channels .append (1 )
45
+ sa .channels .append (0 )
46
+ print sa .channels
47
+ self .assertEqual (len (sa .channels ), 2 )
48
+ self .assertEqual (sa .channels [0 ], 1 )
49
+ self .assertEqual (sa .channels [1 ], 0 )
50
+
39
51
if __name__ == '__main__' :
40
52
gr_unittest .run (test_uhd , "test_uhd.xml" )
Original file line number Diff line number Diff line change 50
50
// used types
51
51
// //////////////////////////////////////////////////////////////////////
52
52
53
+ %template (uhd_string_vector_t ) std::vector<std::string>;
54
+
55
+ %template (uhd_size_vector_t ) std::vector<size_t >;
56
+
53
57
%include <uhd/config.hpp>
54
58
55
59
%include <uhd/utils/pimpl.hpp>
You can’t perform that action at this time.
0 commit comments