PageRenderTime 271ms CodeModel.GetById 24ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Ruby | 42 lines | 22 code | 9 blank | 11 comment | 5 complexity | 8532955ada7f0a1c406e6e512aa97077 MD5 | raw file
 1#!/usr/bin/env ruby
 2#
 3# Put script description here.
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11require 'argout'
12
13include Argout
14
15swig_assert_each_line(<<'EOF', binding)
16
17t = new_intp
18intp_assign(t, 5)
19v = incp(t)
20val = intp_value(t)
21val == 6
22
23t = new_intp
24intp_assign(t, 5)
25v = incr(t)
26v == 5
27val = intp_value(t)
28val == 6
29
30t = new_intp
31intp_assign(t, 5)
32v = inctr(t)
33v == 5
34val = intp_value(t)
35val == 6
36
37EOF
38
39#
40# @todo: how to use voidhandle and handle?
41#
42