PageRenderTime 26ms CodeModel.GetById 16ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/rel-1-3-15/SWIG/Examples/test-suite/ruby/overload_extend_runme.rb

#
Ruby | 8 lines | 5 code | 3 blank | 0 comment | 6 complexity | e5aea5f736a02120eff66e79963400d5 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1require 'overload_extend'
2
3f = Overload_extend::Foo.new
4
5raise RuntimeError if f.test(3) != 1
6raise RuntimeError if f.test("hello") != 2
7raise RuntimeError if f.test(3.5,2.5) != 3
8
9