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:
parent
b72d6a93af
commit
a100f16bbd
22 changed files with 366 additions and 135 deletions
|
|
@ -12,27 +12,29 @@ require 'argout'
|
|||
|
||||
include Argout
|
||||
|
||||
swig_assert_each_line(<<'EOF', binding)
|
||||
|
||||
t = new_intp
|
||||
intp_assign(t, 5)
|
||||
v = incp(t)
|
||||
swig_assert( v == 5, "incp - v == 5 was #{v}")
|
||||
val = intp_value(t)
|
||||
swig_assert( val == 6, "incp - intp_value(t) == 6 was #{val}")
|
||||
val == 6
|
||||
|
||||
t = new_intp
|
||||
intp_assign(t, 5)
|
||||
v = incr(t)
|
||||
swig_assert( v == 5, "incr - v == 5 was #{v}")
|
||||
v == 5
|
||||
val = intp_value(t)
|
||||
swig_assert( val == 6, "incr - intp_value(t) == 6 was #{val}")
|
||||
val == 6
|
||||
|
||||
t = new_intp
|
||||
intp_assign(t, 5)
|
||||
v = inctr(t)
|
||||
swig_assert( v == 5, "inctr - v == 5 was #{v}")
|
||||
v == 5
|
||||
val = intp_value(t)
|
||||
swig_assert( val == 6, "inctr - intp_value(t) == 6 was #{val}")
|
||||
val == 6
|
||||
|
||||
EOF
|
||||
|
||||
#
|
||||
# @todo: how to use voidhandle and handle?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue