PageRenderTime 33ms CodeModel.GetById 22ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/rel-1.3.35/Examples/test-suite/ruby/overload_extend_runme.rb

#
Ruby | 19 lines | 6 code | 5 blank | 8 comment | 6 complexity | be2ee6f0a5164a60534dd3356804d79a MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1#!/usr/bin/env ruby
 2#
 3# Put description here
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11
12require 'overload_extend'
13
14f = Overload_extend::Foo.new
15
16raise RuntimeError if f.test(3) != 1
17raise RuntimeError if f.test("hello") != 2
18raise RuntimeError if f.test(3.5,2.5) != 6
19
20