nobu
b7f26835da
* io.c (argf_eof): go to the next file if called after ARGF.close
...
or ARGF.skip. [ruby-core:24561]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-26 10:17:39 +00:00
nobu
c689ee1a89
* io.c (argf_eof): should not have reached EOF before trying to
...
read. based on a patch by Heesob Park <phasis AT gmail.com> at
[ruby-core:24559]. [ruby-core:24557]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-25 08:49:08 +00:00
matz
be3c53d59d
* test/ruby/test_argf.rb (TestArgf#test_skip): updated test
...
according to clarified behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 15:49:41 +00:00
usa
d324a46784
* test/ruby/test_argf.rb (test_readpartial2): readpartial works just like
...
binmode, so input of it should be binmode'ed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 03:26:32 +00:00
nobu
85101b7625
* test/ruby/test_argf.rb (test_{argf,lineno,lineno2}): don't repeat
...
comments and expected results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 07:30:56 +00:00
mame
eafe85f603
* test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): new
...
method.
* test/ruby/test_argf.rb: use assert_in_out_err instead of
EnvUtil.rubyexec.
* test/ruby/test_module.rb: ditto.
* test/ruby/test_require.rb: ditto.
* test/ruby/test_objectspace.rb: ditto.
* test/ruby/test_object.rb: ditto.
* test/ruby/test_string.rb: ditto.
* test/ruby/test_method.rb: ditto.
* test/ruby/test_variable.rb: ditto.
* test/ruby/test_io.rb: ditto.
* test/ruby/test_rubyoptions.rb: ditto.
* test/ruby/test_exception.rb: ditto.
* test/ruby/test_class.rb: ditto.
* test/ruby/test_thread.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 15:26:04 +00:00
akr
1318dff1a8
add a test for [ruby-dev:34958].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-28 05:15:25 +00:00
usa
6874320d20
* test/ruby/test_argf.rb: support NO_SAFE_RENAME platforms.
...
* test/ruby/test_argf.rb: now tempfiles are binmode'ed to test tell/pos/etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 07:28:24 +00:00
usa
a966b61fd2
* test/ruby/test_argf.rb (test_binmode): wrong test. fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 05:52:32 +00:00
akr
8a5dd664e7
* test/ruby/test_argf.rb (teardown): remove renamed temporary files.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-02 10:18:38 +00:00
mame
5e6fc71d96
* test/ruby/test_argf.rb: rename a conflicting method name.
...
* test/ruby/test_string.rb: ditto.
* test/ruby/test_io.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 13:18:17 +00:00
mame
88c1862edb
* test/ruby/test_argf.rb: new tests for ARGF, to achieve over 85% test
...
coverage of file.c.
* test/ruby/test_io.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 13:48:54 +00:00