Skip to content

Commit

Permalink
* rubytest.rb: use each_line instead of each.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
eban committed Sep 21, 2006
1 parent 255702b commit ee9bae8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion rubytest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
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
Expand Down

0 comments on commit ee9bae8

Please sign in to comment.