swig/Examples/test-suite/ruby/newobject1_runme.rb
Dave Beazley 12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00

15 lines
289 B
Ruby

require 'newobject1'
include Newobject1
foo1 = Foo.makeFoo
raise RuntimeError if Foo.fooCount != 1
foo2 = foo1.makeMore
raise RuntimeError if Foo.fooCount != 2
foo1 = nil ; GC.start
raise RuntimeError if Foo.fooCount != 1
foo2 = nil ; GC.start
raise RuntimeError if Foo.fooCount != 0