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

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

#
Ruby | 23 lines | 8 code | 7 blank | 8 comment | 6 complexity | 5e40bac739231c18523bd8b133b47611 MD5 | raw file
 1#!/usr/bin/env ruby
 2#
 3# Put description here
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11
12require 'smart_pointer_rename'
13
14include Smart_pointer_rename
15
16f = Foo.new
17b = Bar.new(f)
18
19raise RuntimeError if b.test() != 3
20
21raise RuntimeError if b.ftest1(1) != 1
22
23raise RuntimeError if b.ftest2(2,3) != 2
24