PageRenderTime 26ms CodeModel.GetById 1ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #!/usr/bin/env ruby
  2. #
  3. # Simple test of std::ostringstream.
  4. #
  5. #
  6. #
  7. #
  8. #
  9. require 'swig_assert'
  10. require 'li_std_stream'
  11. include Li_std_stream
  12. swig_assert_each_line(<<'EOF', binding)
  13. a = A.new
  14. o = Ostringstream.new
  15. o << a << " " << 2345 << " " << 1.435
  16. o.str == "A class 2345 1.435"
  17. EOF