/trunk/Examples/test-suite/ruby/using_private_runme.rb
Ruby | 30 lines | 14 code | 8 blank | 8 comment | 6 complexity | 42277b3b89b6da3429d40ba0e2f093b4 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 'using_private'
- include Using_private
- f = FooBar.new
- f.x = 3
- if f.blah(4) != 4
- raise RuntimeError, "blah(int)"
- end
- if f.defaulted() != -1
- raise RuntimeError, "defaulted()"
- end
- if f.defaulted(222) != 222
- raise RuntimeError, "defaulted(hi)"
- end