PageRenderTime 13ms CodeModel.GetById 1ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/ruby/overload_extend_runme.rb

#
Ruby | 19 lines | 6 code | 5 blank | 8 comment | 6 complexity | be2ee6f0a5164a60534dd3356804d79a MD5 | raw file
 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