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:
William S Fulton 2007-09-03 19:45:14 +00:00
commit f1e5b5edff
5 changed files with 31 additions and 8 deletions

View file

@ -4,7 +4,6 @@
namespace std {
%template(IntPair) pair<int, int>;
%template(ValuePair) pair< swig::LANGUAGE_OBJ, swig::LANGUAGE_OBJ >;
}
%inline %{

View file

@ -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 \

View 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 >;
}

View 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

View file

@ -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