/trunk/Examples/test-suite/ruby/friends_runme.rb

# · Ruby · 19 lines · 6 code · 5 blank · 8 comment · 6 complexity · b0f1f9bf3540a64de7ce580d83b9a7e7 MD5 · raw file

  1. #!/usr/bin/env ruby
  2. #
  3. # Put description here
  4. #
  5. #
  6. #
  7. #
  8. #
  9. require 'swig_assert'
  10. require 'friends'
  11. a = Friends::A.new(2)
  12. raise RuntimeError if Friends::get_val1(a) != 2
  13. raise RuntimeError if Friends::get_val2(a) != 4
  14. raise RuntimeError if Friends::get_val3(a) != 6