/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

  1. require 'newobject2'
  2. include Newobject2
  3. foo1 = makeFoo
  4. raise RuntimeError if fooCount != 1
  5. foo2 = makeFoo
  6. raise RuntimeError if fooCount != 2
  7. foo1 = nil ; GC.start
  8. raise RuntimeError if fooCount != 1
  9. foo2 = nil ; GC.start
  10. raise RuntimeError if fooCount != 0