simple const enum SWIGTYPE & typemap test and enum by value runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e971c7dc62
commit
6c5b430226
1 changed files with 8 additions and 0 deletions
8
SWIG/Examples/test-suite/ruby/enum_thorough_runme.rb
Executable file
8
SWIG/Examples/test-suite/ruby/enum_thorough_runme.rb
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
require 'enum_thorough'
|
||||
|
||||
include Enum_thorough
|
||||
|
||||
# Just test an in and out typemap for enum SWIGTYPE and const enum SWIGTYPE & typemaps
|
||||
raise RuntimeError if speedTest4(SpeedClass::Slow) != SpeedClass::Slow
|
||||
raise RuntimeError if speedTest5(SpeedClass::Slow) != SpeedClass::Slow
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue