[MacRuby/MacRuby] c9a633: Fixed missing pass limit in StringIO#each_line.
8 Apr
2011
8 Apr
'11
12:57 a.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: c9a633984c44247b955c2bebb780dec78e17313f https://github.com/MacRuby/MacRuby/commit/c9a633984c44247b955c2bebb780dec78e... Author: Watson <watson1978@gmail.com> Date: 2011-04-07 (Thu, 07 Apr 2011) Changed paths: M lib/stringio.rb Log Message: ----------- Fixed missing pass limit in StringIO#each_line. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions require 'stringio' f = StringIO.new("foo\nbar\nbaz\n") ary = [] f.each_line(2) {|s| ary << s} assert_equal(["fo", "o\n", "ba", "r\n", "ba", "z\n"], ary) puts :ok }}}
5328
Age (days ago)
5328
Last active (days ago)
0 comments
1 participants
participants (1)
-
noreply@github.com