1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#!/usr/bin/env ruby # # Put description here # # # # # require 'swig_assert' require 'dynamic_cast' f = Dynamic_cast::Foo.new b = Dynamic_cast::Bar.new x = f.blah y = b.blah a = Dynamic_cast.do_test(y) if a != "Bar::test" puts "Failed!!" end