/trunk/Examples/test-suite/ruby/friends_runme.rb
# · Ruby · 19 lines · 6 code · 5 blank · 8 comment · 6 complexity · b0f1f9bf3540a64de7ce580d83b9a7e7 MD5 · raw file
- #!/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