diff options
Diffstat (limited to 'Examples/test-suite/ruby/arrays_runme.rb')
| -rwxr-xr-x | Examples/test-suite/ruby/arrays_runme.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Examples/test-suite/ruby/arrays_runme.rb b/Examples/test-suite/ruby/arrays_runme.rb new file mode 100755 index 0000000..749d817 --- /dev/null +++ b/Examples/test-suite/ruby/arrays_runme.rb @@ -0,0 +1,25 @@ +#!/usr/bin/env ruby +# +# Test run of arrays.i +# +# + +require 'swig_assert' +require 'arrays' + +include Arrays + +a = SimpleStruct.new +a.double_field = 2.0 + +b = SimpleStruct.new +b.double_field = 1.0 + +# @bug: this is broken +# +# c = [a,b] +# fn_taking_arrays(c) +# +# a = ArrayStruct.new +# a.array_i[0] = 0 +# |
