/trunk/Examples/test-suite/ruby/friends_runme.rb
Ruby | 19 lines | 6 code | 5 blank | 8 comment | 6 complexity | b0f1f9bf3540a64de7ce580d83b9a7e7 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 'friends'
- a = Friends::A.new(2)
- raise RuntimeError if Friends::get_val1(a) != 2
- raise RuntimeError if Friends::get_val2(a) != 4
- raise RuntimeError if Friends::get_val3(a) != 6