summaryrefslogtreecommitdiff
path: root/Examples/test-suite/ruby/li_std_stream_runme.rb
blob: 80c5166f3c0a46d552d8916a65ff962def57f5fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env ruby
#
# Simple test of std::ostringstream.
#
# 
# 
# 
#

require 'swig_assert'

require 'li_std_stream'
include Li_std_stream

swig_assert_each_line(<<'EOF', binding)

a = A.new
o = Ostringstream.new
o << a << " " << 2345 << " " << 1.435
o.str == "A class 2345 1.435"

EOF