Added proper each(), printing and other methods to map

and multimap.




git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Gonzalo Garramuno 2007-05-01 05:43:30 +00:00
commit c0a7c7e081
5 changed files with 104 additions and 50 deletions

View file

@ -23,6 +23,10 @@ begin
rescue ArgumentError
end
swig_assert_each_line(<<'EOF', binding)
iv.respond_to?(:each) == true
iv.respond_to?(:each_with_index) == true
EOF
iv.each_with_index { |e,i|
swig_assert("#{e} == 0", binding, "for iv[#{i}] == 0")

View file

@ -76,7 +76,7 @@ def swig_assert( expr, scope = nil, msg = nil )
raise
end
raise SwigRubyError.new("FAILED: #{expr.to_s} - #{e}") unless ok
raise SwigRubyError.new("FAILED: #{expr.to_s} - #{msg}") unless ok
if $VERBOSE
$stdout.puts "\tPASSED #{expr} #{msg}"