Added new tests.

Updated swig_gc interface to make it simpler.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9696 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Gonzalo Garramuno 2007-04-28 17:45:32 +00:00
commit 522403958e
5 changed files with 77 additions and 12 deletions

View file

@ -24,12 +24,11 @@ require 'newobject1'
include Newobject1
stats = nil
stats = GC.stats(stats, Foo)
GC.stats(Foo)
100.times { foo1 = Foo.makeFoo; foo2 = foo1.makeMore }
stats = GC.stats(stats, Foo)
GC.stats(Foo)
swig_assert( 'Foo.fooCount == 200', "but is #{Foo.fooCount}" )
GC.start
stats = GC.stats(stats, Foo)
GC.stats(Foo)
swig_assert( 'Foo.fooCount <= 2', "but is #{Foo.fooCount}" )