[macruby-changes] [MacRuby/MacRuby] c9a633: Fixed missing pass limit in StringIO#each_line.

noreply at github.com noreply at github.com
Thu Apr 7 17:57:33 PDT 2011


Branch: refs/heads/master
Home:   https://github.com/MacRuby/MacRuby

Commit: c9a633984c44247b955c2bebb780dec78e17313f
    https://github.com/MacRuby/MacRuby/commit/c9a633984c44247b955c2bebb780dec78e17313f
Author: Watson <watson1978 at 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
}}}




More information about the macruby-changes mailing list