diff options
Diffstat (limited to 'Examples/test-suite/ruby/li_std_stream_runme.rb')
| -rwxr-xr-x | Examples/test-suite/ruby/li_std_stream_runme.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Examples/test-suite/ruby/li_std_stream_runme.rb b/Examples/test-suite/ruby/li_std_stream_runme.rb new file mode 100755 index 0000000..80c5166 --- /dev/null +++ b/Examples/test-suite/ruby/li_std_stream_runme.rb @@ -0,0 +1,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 |
