PageRenderTime 13ms CodeModel.GetById 2ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Ruby | 30 lines | 14 code | 8 blank | 8 comment | 6 complexity | 42277b3b89b6da3429d40ba0e2f093b4 MD5 | raw file
 1#!/usr/bin/env ruby
 2#
 3# Put description here
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11
12require 'using_private'
13
14include Using_private
15
16f = FooBar.new
17f.x = 3
18
19if f.blah(4) != 4
20  raise RuntimeError, "blah(int)"
21end
22
23if f.defaulted() != -1
24  raise RuntimeError, "defaulted()"
25end
26
27if f.defaulted(222) != 222
28  raise RuntimeError, "defaulted(hi)"
29end
30