summaryrefslogtreecommitdiffstats
path: root/test/stringio
Commit message (Collapse)AuthorAgeFilesLines
* * ext/stringio/stringio.c (ungetc): RDoc updated. trunk allowsnahi2009-12-041-1/+1
| | | | | | | pushing back behind the beginning of the pseudo stream. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (Init_stringio): added read_nonblock andnobu2009-10-271-0/+40
| | | | | | | write_nonblock aliases. [ruby-dev:39551] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * stringio/stringio.c (strio_read): set ASCII-8BIT encodingnaruse2009-09-281-1/+4
| | | | | | when length argument is given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test: use require_relative.naruse2009-09-121-4/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_each_codepoint): new method.matz2009-06-221-0/+5
| | | | | | | | [ruby-core:23949] * ext/stringio/stringio.c (strio_each_codepoint): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_ungetbyte): encoding should notnobu2009-05-141-0/+15
| | | | | | | be effective. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/stringio/test_stringio.rb (test_path): StringIO#path is nonobu2009-04-061-4/+0
| | | | | | | longer defined. [ruby-dev:38254] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-061-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/stringio/test_stringio.rb (test_ungetc_pos): added.nobu2009-02-121-0/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_call_method, vm_call_cfunc): use original id instead ofko12008-12-271-0/+15
| | | | | | | | | | | | | calling id when NODE_CFUNC or NODE_BMETHOD. fixes Bug #632 [ruby-core:19282]. * vm_eval.c (vm_call0, vm_call_super): ditto. * vm_method.c (rb_add_method, rb_alias): store original id in nd_file field of NODE_METHOD. * test/stringio/test_stringio.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_init): rewind when reopened.mame2008-06-111-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/stringio/test_stringio.rb: add tests to achieve over 95% testmame2008-06-051-0/+314
| | | | | | | | | coverage of stringio. * test/strscan/test_stringscanner.rb: ditto for strscan. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests for [ruby-dev:34591].akr2008-05-121-0/+25
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use ML ref. for assertion message.akr2007-11-181-6/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_write): insufficiently filled stringnobu2004-11-291-0/+10
| | | | | | | being extended when overwriting. [ruby-core:03836] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_write): zero fill a gap if exsts.nobu2004-09-081-1/+1
| | | | | | | [ruby-dev:24190] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:24060], [ruby-dev:24065], [ruby-dev:24103],akr2004-09-071-0/+16
| | | | | | | | [ruby-dev:24190], [ruby-dev:24191], [ruby-dev:24194], [ruby-dev:24197], [ruby-dev:24202], [ruby-dev:24213], [ruby-dev:24223] and [ruby-dev:24228]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_read): adjust behavior at readingnobu2003-12-101-0/+2
| | | | | | | | | | | | | beyond EOF to IO. [ruby-dev:22205] * test/ruby/ut_eof.rb (TestEOF::Seek): test behaviors at reading beyond EOF. * test/ruby/test_file.rb, * test/stringio/test_stringio.rb: include TestEOF::Seek test case. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ditto.akr2003-12-091-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_read): follow IO#read.nobu2003-12-051-9/+8
| | | | | | | | * test/ruby/ut_eof.rb, test/ruby/test_file.rb, test/ruby/test_pipe.rb, test/stringio/test_stringio.rb: add EOF test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/stringio/test_stringio.rb: imported from [ruby-dev:21941].nobu2003-11-181-0/+15
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e