mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
255702be8c
commit
ee9bae8cd7
2 changed files with 6 additions and 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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue