swig/Examples/test-suite/ruby/li_std_stream_runme.rb
Gonzalo Garramuno 8742036cbd Removed macro stuff titles of author, copyright,
etc.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9785 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-06 18:02:24 +00:00

22 lines
289 B
Ruby
Executable file

#!/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