Added some runtime tests for ruby.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
928f12bd44
commit
5be075f16f
7 changed files with 255 additions and 0 deletions
34
Examples/test-suite/ruby/abstract_access_runme.rb
Executable file
34
Examples/test-suite/ruby/abstract_access_runme.rb
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
#!/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, 'A.new')
|
||||
end
|
||||
|
||||
begin
|
||||
b = B.new
|
||||
rescue TypeError
|
||||
swig_assert(true, 'B.new')
|
||||
end
|
||||
|
||||
begin
|
||||
c = C.new
|
||||
rescue TypeError
|
||||
swig_assert(true, 'C.new')
|
||||
end
|
||||
|
||||
swig_assert( 'D.new' )
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue