diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-21 07:29:56 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-21 07:29:56 +0000 |
commit | ee9bae8cd7b058a678ec0d0b633ecfb6df3da344 (patch) | |
tree | b04cc5f457898f43822144dc23e0de0f9a4a3a2a | |
parent | 255702be8ca169429867294d4a1fd818b53af928 (diff) |
* rubytest.rb: use each_line instead of each.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 |