*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fe0fe922d4
commit
adf656870a
7 changed files with 85 additions and 0 deletions
13
Examples/test-suite/ruby/using_inherit_runme.rb
Normal file
13
Examples/test-suite/ruby/using_inherit_runme.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
require 'using_inherit'
|
||||
|
||||
include Using_inherit
|
||||
|
||||
b = Bar.new
|
||||
if b.test(3) != 3
|
||||
raise RuntimeError,"test(int)"
|
||||
end
|
||||
|
||||
if b.test(3.5) != 3.5
|
||||
raise RuntimeError, "test(double)"
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue