diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | rubytest.rb | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Thu Sep 21 16:29:02 2006 WATANABE Hirofumi <eban@ruby-lang.org> + + * rubytest.rb: use each_line instead of each. + Thu Sep 21 15:06:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * numeric.c (int_odd_p): a new method to check even or odd. @@ -24,7 +28,7 @@ Thu Sep 21 09:38:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * string.c (rb_str_lines): new method to split a string into lines. * string.c (Init_String): Strings are no longer Enumerable. use - each_lines or lines method explicitly. + each_line or lines method explicitly. * string.c (Init_String): remove each method. use each_lines. diff --git a/rubytest.rb b/rubytest.rb index a5566cd1ee..e5cc9ba1ab 100644 --- a/rubytest.rb +++ b/rubytest.rb @@ -37,7 +37,7 @@ $stderr.reopen($stdout) error = '' srcdir = File.dirname(__FILE__) -`#{ruby} -I#{srcdir}/lib #{srcdir}/sample/test.rb`.each do |line| +`#{ruby} -I#{srcdir}/lib #{srcdir}/sample/test.rb`.each_line do |line| if line =~ /^end of test/ print "test succeeded\n" exit true |