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 | 5f2eff87f32a60b280cf78d763190278ee1e16bd (patch) | |
tree | b04cc5f457898f43822144dc23e0de0f9a4a3a2a | |
parent | 7bb06e7e9a44a6018214df04f4fced2ca55e8fdf (diff) | |
download | ruby-5f2eff87f32a60b280cf78d763190278ee1e16bd.tar.gz ruby-5f2eff87f32a60b280cf78d763190278ee1e16bd.tar.xz ruby-5f2eff87f32a60b280cf78d763190278ee1e16bd.zip |
* rubytest.rb: use each_line instead of each.
git-svn-id: http://svn.ruby-lang.org/repos/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 a5566cd1e..e5cc9ba1a 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 |