These is the current tests for the friend function support.
They will give you and idea of what is currently working. If you have another case you think we need to test, please send me an email to add it and trying it here. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
27a79df294
commit
8158b1f2ec
3 changed files with 171 additions and 0 deletions
8
SWIG/Examples/test-suite/ruby/friends_runme.rb
Normal file
8
SWIG/Examples/test-suite/ruby/friends_runme.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
require 'friends'
|
||||
|
||||
|
||||
a = Friends::A.new(2)
|
||||
|
||||
raise RuntimeError if Friends::get_val1(a) != 2
|
||||
raise RuntimeError if Friends::get_val2(a) != 4
|
||||
raise RuntimeError if Friends::get_val3(a) != 6
|
||||
Loading…
Add table
Add a link
Reference in a new issue