PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  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