[MacRuby/MacRuby] 976f5c: StringIO#puts will write a newline when was passed...
6 Apr
2011
6 Apr
'11
9:40 a.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 976f5c6331122bdf3998472554063225473b590d https://github.com/MacRuby/MacRuby/commit/976f5c6331122bdf399847255406322547... Author: Watson <watson1978@gmail.com> Date: 2011-04-06 (Wed, 06 Apr 2011) Changed paths: M lib/stringio.rb M spec/frozen/tags/macruby/library/stringio/puts_tags.txt Log Message: ----------- StringIO#puts will write a newline when was passed empty string. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions require 'stringio' f = StringIO.new f.puts "" assert_equal("\n", f.string) f = StringIO.new f.puts "", "a", "b", "c\n\n" assert_equal("\na\nb\nc\n\n", f.string) puts :ok }}}
5330
Age (days ago)
5330
Last active (days ago)
0 comments
1 participants
participants (1)
-
noreply@github.com