12 require 'abstract_inherit'
14 include Abstract_inherit
17 # Shouldn't be able to instantiate any of these classes
18 # since none of them implements the pure virtual function
19 # declared in the base class (Foo).
22 exceptionRaised = false
26 exceptionRaised = true
28 # In Ruby 1.8 the exception raised is:
29 # TypeError: allocator undefined for Abstract_inherit::Foo
30 exceptionRaised = true
32 swig_assert( "exceptionRaised", binding )
35 exceptionRaised = false
39 exceptionRaised = true
41 # In Ruby 1.8 the exception raised is:
42 # TypeError: allocator undefined for Abstract_inherit::Bar
43 exceptionRaised = true
45 swig_assert( "exceptionRaised", binding )
48 exceptionRaised = false
52 exceptionRaised = true
54 # In Ruby 1.8 the exception raised is:
55 # TypeError: allocator undefined for Abstract_inherit::Spam
56 exceptionRaised = true
58 swig_assert( "exceptionRaised", binding )