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