PageRenderTime 132ms CodeModel.GetById 125ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Ruby | 19 lines | 6 code | 5 blank | 8 comment | 6 complexity | b0f1f9bf3540a64de7ce580d83b9a7e7 MD5 | raw file
 1#!/usr/bin/env ruby
 2#
 3# Put description here
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11
12require 'friends'
13
14
15a = Friends::A.new(2)
16
17raise RuntimeError if Friends::get_val1(a) != 2
18raise RuntimeError if Friends::get_val2(a) != 4
19raise RuntimeError if Friends::get_val3(a) != 6
20