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

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

#
Ruby | 21 lines | 7 code | 6 blank | 8 comment | 4 complexity | 2219c1ff2e16cfe1b8a99b5a4de638e4 MD5 | raw file
 1#!/usr/bin/env ruby
 2#
 3# Put description here
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11
12require 'struct_value'
13
14b = Struct_value::Bar.new
15
16b.a.x = 3
17raise RuntimeError if b.a.x != 3
18
19b.b.x = 3
20raise RuntimeError if b.b.x != 3
21
22