move std::multimap tests from li_std_map.i into new li_std_multimap.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
13cbd90553
commit
267ffd6ce6
5 changed files with 31 additions and 12 deletions
27
Examples/test-suite/ruby/li_std_multimap_runme.rb
Executable file
27
Examples/test-suite/ruby/li_std_multimap_runme.rb
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env ruby
|
||||
#
|
||||
# Tests for std::multimap
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
require 'swig_assert'
|
||||
require 'li_std_multimap'
|
||||
|
||||
swig_assert_each_line(<<'EOF', binding)
|
||||
|
||||
a1 = Li_std_multimap::A.new(3)
|
||||
a2 = Li_std_multimap::A.new(7)
|
||||
|
||||
m = Li_std_multimap::MultimapA.new
|
||||
m[0] = a1
|
||||
m[0] = a2
|
||||
m[0].size == 2
|
||||
m.respond_to?(:each) == true
|
||||
m.respond_to?(:each_key) == true
|
||||
m.respond_to?(:each_value) == true
|
||||
m.values_at(0)[0] == m[0]
|
||||
EOF
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue