/tags/rel-1-3-premerge/SWIG/Examples/test-suite/ruby/newobject2_runme.rb
# · Ruby · 15 lines · 10 code · 5 blank · 0 comment · 8 complexity · 9ffb412c8d61acec74d1a14e2588945f MD5 · raw file
- require 'newobject2'
- include Newobject2
- foo1 = makeFoo
- raise RuntimeError if fooCount != 1
- foo2 = makeFoo
- raise RuntimeError if fooCount != 2
- foo1 = nil ; GC.start
- raise RuntimeError if fooCount != 1
- foo2 = nil ; GC.start
- raise RuntimeError if fooCount != 0