1
require 'track_objects_directors'
3
class MyFoo < Track_objects_directors::Foo
11
raise RuntimeError if a.ping != "MyFoo::ping()"
12
raise RuntimeError if a.pong != "Foo::pong();MyFoo::ping()"
14
b = Track_objects_directors::Foo.new
16
raise RuntimeError if b.ping != "Foo::ping()"
17
raise RuntimeError if b.pong != "Foo::pong();Foo::ping()"
19
container = Track_objects_directors::Container.new
21
container.set_foo(foo)
23
myFoo1 = container.get_foo
24
myFoo2 = container.get_foo
26
if not myFoo1.equal?(myFoo2)
27
raise RuntimeError, "MyFoo's should be the same"