Move ruby specific test into Ruby specific testcase li_std_pair_lang_object.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
87577ab5e6
commit
f1e5b5edff
5 changed files with 31 additions and 8 deletions
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
namespace std {
|
||||
%template(IntPair) pair<int, int>;
|
||||
%template(ValuePair) pair< swig::LANGUAGE_OBJ, swig::LANGUAGE_OBJ >;
|
||||
}
|
||||
|
||||
%inline %{
|
||||
|
|
|
|||
|
|
@ -19,11 +19,12 @@ CPP_TEST_CASES = \
|
|||
li_cdata \
|
||||
li_cstring \
|
||||
li_factory \
|
||||
li_std_map \
|
||||
li_std_set \
|
||||
li_std_functors \
|
||||
li_std_stack \
|
||||
li_std_map \
|
||||
li_std_pair_lang_object \
|
||||
li_std_queue \
|
||||
li_std_set \
|
||||
li_std_stack \
|
||||
naming \
|
||||
primitive_types \
|
||||
std_containers \
|
||||
|
|
|
|||
8
Examples/test-suite/ruby/li_std_pair_lang_object.i
Normal file
8
Examples/test-suite/ruby/li_std_pair_lang_object.i
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
%module li_std_pair_lang_object
|
||||
|
||||
%include <std_pair.i>
|
||||
|
||||
namespace std {
|
||||
%template(ValuePair) pair< swig::LANGUAGE_OBJ, swig::LANGUAGE_OBJ >;
|
||||
}
|
||||
|
||||
19
Examples/test-suite/ruby/li_std_pair_lang_object_runme.rb
Normal file
19
Examples/test-suite/ruby/li_std_pair_lang_object_runme.rb
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env ruby
|
||||
#
|
||||
# Put description here
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
require 'swig_assert'
|
||||
|
||||
require 'li_std_pair'
|
||||
include Li_std_pair
|
||||
|
||||
swig_assert_each_line(<<'EOF', binding)
|
||||
val = ValuePair.new
|
||||
val.first = 'sd'
|
||||
val.second = [5,4,3]
|
||||
EOF
|
||||
|
|
@ -54,8 +54,4 @@ product3(intPair) == 42
|
|||
product1(intPairPtr) == 42
|
||||
product2(intPairPtr) == 42
|
||||
product3(intPairPtr) == 42
|
||||
|
||||
val = ValuePair.new
|
||||
val.first = 'sd'
|
||||
val.second = [5,4,3]
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue