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

# · Ruby · 19 lines · 5 code · 5 blank · 9 comment · 4 complexity · 40d6db40bbc331693c3107d1bdfd072a MD5 · raw file

  1. #!/usr/bin/env ruby
  2. #
  3. # Put description here
  4. #
  5. #
  6. #
  7. #
  8. #
  9. require 'swig_assert'
  10. require 'enum_thorough'
  11. include Enum_thorough
  12. # Just test an in and out typemap for enum SWIGTYPE and const enum SWIGTYPE & typemaps
  13. raise RuntimeError if speedTest4(SpeedClass::Slow) != SpeedClass::Slow
  14. raise RuntimeError if speedTest5(SpeedClass::Slow) != SpeedClass::Slow