/trunk/Examples/test-suite/ruby/li_std_multimap_runme.rb
Ruby | 27 lines | 14 code | 5 blank | 8 comment | 5 complexity | 5b5367ccb36a274083050322fd43e230 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- #!/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