/tags/rel-1.3.35/Examples/test-suite/ruby/smart_pointer_rename_runme.rb
Ruby | 23 lines | 8 code | 7 blank | 8 comment | 6 complexity | 5e40bac739231c18523bd8b133b47611 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 'smart_pointer_rename'
- include Smart_pointer_rename
- f = Foo.new
- b = Bar.new(f)
- raise RuntimeError if b.test() != 3
- raise RuntimeError if b.ftest1(1) != 1
- raise RuntimeError if b.ftest2(2,3) != 2