/trunk/Examples/test-suite/ruby/struct_value_runme.rb
Ruby | 21 lines | 7 code | 6 blank | 8 comment | 4 complexity | 2219c1ff2e16cfe1b8a99b5a4de638e4 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- #!/usr/bin/env ruby
- #
- # Put description here
- #
- #
- #
- #
- #
- require 'swig_assert'
- require 'struct_value'
- b = Struct_value::Bar.new
- b.a.x = 3
- raise RuntimeError if b.a.x != 3
- b.b.x = 3
- raise RuntimeError if b.b.x != 3