PageRenderTime 15ms CodeModel.GetById 1ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/ruby/abstract_access_runme.rb

#
Ruby | 34 lines | 19 code | 7 blank | 8 comment | 0 complexity | d4fe248c056beb6db03e27a6e21b89ab MD5 | raw file
 1#!/usr/bin/env ruby
 2#
 3# Put script description here.
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11require 'abstract_access'
12
13include Abstract_access
14
15begin
16  a = A.new
17rescue TypeError
18  swig_assert(true, binding, 'A.new')
19end
20
21begin
22  b = B.new
23rescue TypeError
24  swig_assert(true, binding, 'B.new')
25end
26
27begin
28  c = C.new
29rescue TypeError
30  swig_assert(true, binding, 'C.new')
31end
32
33swig_assert( 'D.new' )
34