Fixes to std_map and multimap. There's still a problem

of const correctness in the std swig STL library.  
Need to bring it up in the swig-devel list.

Added new functions to swig_assert.
Changed some tests to reflect these changes.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Gonzalo Garramuno 2007-05-01 01:08:17 +00:00
commit a100f16bbd
22 changed files with 366 additions and 135 deletions

View file

@ -16,7 +16,7 @@ include Apply_signed_char
['CharValFunction', 'CCharValFunction', 'CCharRefFunction'].each do |m|
[ 3, -3 ].each do |v|
val = send( m, v )
swig_assert( v == val, "for #{m} #{val} == #{v} ")
swig_assert( "v == val", binding, "for #{m}")
end
end
@ -24,7 +24,7 @@ end
'globalconstchar' => -110,
}.each do |k,v|
val = Apply_signed_char.send( k )
swig_assert( v == val, "for #{k} #{val} == #{v} ")
swig_assert( "v == val", binding, "for #{k}")
end
@ -33,7 +33,7 @@ a = DirectorTest.new
['CharValFunction', 'CCharValFunction', 'CCharRefFunction'].each do |m|
[ 3, -3 ].each do |v|
val = a.send( m, v )
swig_assert( v == val, "for DirectorTest.#{m} #{val} == #{v} ")
swig_assert( "v == val", binding, "for DirectorTest.#{m}")
end
end
@ -41,5 +41,5 @@ end
'memberconstchar' => -112,
}.each do |k,v|
val = a.send( k )
swig_assert( v == val, "for #{k} #{val} == #{v} ")
swig_assert( "v == val", binding, "for #{k}")
end