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

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

#
Ruby | 22 lines | 9 code | 5 blank | 8 comment | 1 complexity | dd36eaac530153966e7caae45ecdb92f MD5 | raw file
 1#!/usr/bin/env ruby
 2#
 3# Simple test of std::ostringstream.
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11
12require 'li_std_stream'
13include Li_std_stream
14
15swig_assert_each_line(<<'EOF', binding)
16
17a = A.new
18o = Ostringstream.new
19o << a << " " << 2345 << " " << 1.435
20o.str == "A class 2345 1.435"
21
22EOF