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 'typedef_scope' b = Typedef_scope::Bar.new x = b.test1(42, "hello") if x != 42 puts "Failed!!" end x = b.test2(42, "hello") if x != "hello" puts "Failed!!" end