swig/Examples/test-suite/ruby/abstract_access_runme.rb
Gonzalo Garramuno a100f16bbd 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
2007-05-01 01:08:17 +00:00

34 lines
446 B
Ruby
Executable file

#!/usr/bin/env ruby
#
# Put script description here.
#
# Author:: gga
# Copyright:: 2007
# License:: Ruby
#
require 'swig_assert'
require 'abstract_access'
include Abstract_access
begin
a = A.new
rescue TypeError
swig_assert(true, binding, 'A.new')
end
begin
b = B.new
rescue TypeError
swig_assert(true, binding, 'B.new')
end
begin
c = C.new
rescue TypeError
swig_assert(true, binding, 'C.new')
end
swig_assert( 'D.new' )