summaryrefslogtreecommitdiffstats
path: root/test/ruby
Commit message (Collapse)AuthorAgeFilesLines
* * test/ruby/test_signal.rb (test_exit_action): skip the test usingusa2005-09-151-0/+10
| | | | | | | fork on fork-less platforms. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dbm/test_dbm.rb: remove locking test, which may not bematz2005-09-121-6/+4
| | | | | | | supported on some platforms. [ruby-dev:27030] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_iterator.rb (test_block_passing): more tests.nobu2005-08-171-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_iterator.rb (test_block_passing): yield in methodnobu2005-08-101-0/+8
| | | | | | | argument behaves differently. [ruby-dev:26274] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2005-08-081-0/+42
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_super.rb: added from HEAD. [ruby-dev:26743]nahi2005-08-071-0/+29
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid some race conditionakr2005-07-031-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:26383].akr2005-06-301-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* kill a process spawned by test_exit_action.akr2005-06-051-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:26128].akr2005-06-031-0/+23
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb: add test for find_all. (based on Daniel Berger's ↵ocean2005-05-131-0/+10
| | | | | | patch) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests for reading an extended fileakr2005-05-121-0/+38
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_eof, remain_size, read_all, io_read, appendline)akr2005-05-121-6/+6
| | | | | | | | | | | (swallow, rb_io_each_byte, rb_io_getc): revert previous change. * io.c (rb_io_eof, io_fread, appendline, swallow, rb_io_each_byte) (rb_io_getc, rb_getc): call clearerr before getc to avoid stdio incompatibility. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_eof, remain_size, read_all, io_read, appendline)akr2005-05-121-6/+6
| | | | | | | | (swallow, rb_io_each_byte, rb_io_getc): don't rely EOF flag. [ruby-talk:141527] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb, test/drb/drbtest.rb: can test drbocean2005-05-121-0/+3
| | | | | | | before install. (backported from HEAD) [ruby-Bugs-1672] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): "return" event hook should be always executedshugo2005-04-071-39/+55
| | | | | | | | if event_hooks is set. fixed: [ruby-core:04662] (backported from HEAD) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_settracefunc.rb (test_event): added tests forshugo2005-03-221-12/+106
| | | | | | | "class" and "end" and "raise". git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): call_cfunc() should be protected.shugo2005-03-161-9/+11
| | | | | | | * test/ruby/test_settracefunc.rb: added test for c-return. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ossl_start_ssl, ossl_ssl_read,gotoyuzo2005-03-071-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ossl_ssl_write): - need to set errno on Win32 platform. - should call rb_sys_fail instead of rasing SSLError if SSL_ERROR_SYSCALL occured. - should wait for that the underlying IO become readable or writable if the error was SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE. [ruby-dev:25795] * ext/openssl/lib/openssl/buffering.rb (Buffering#initialize): should set @eof and @rbuffer. (Buffering#fill_rbuff): should rescue Errno::EAGAIN. (Buffering#consume_rbuf): pointless eof flag resetting is deleted. (Buffering#read): should return an empty string if the specified size is zero. (Buffering#readpartial): new method. (Buffering#readline): fix typo. (Buffering#getc): return the first character of string correctly. (Buffering#each): fix typo. suggested by Brian Ollenberger. (Buffering#readchar): fix typo. (Buffering#eof?): should read again it the input buffer is empty. (Buffering#do_write): should rescue Errno::EAGAIN. (Buffering#puts): use "\n" as the output field separator. * ext/openssl/lib/openssl/ssl.rb: set non-blocking flag to the underlying IO. * ext/openssl/extconf.rb: get rid of GNUmakefile generation. * text/openssl/test_pair.rb: test for IO like methods. * test/ruby/ut_eof.rb: test about empty file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test_rand_0x100000000.akr2005-02-071-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_fread): warn nonblocking behavior.akr2005-01-081-0/+2
| | | | | | | (io_readpartial): new method IO#readpartial. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2005-01-041-0/+124
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2004-12-201-0/+88
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (convert_type): [ruby-core:03845]matz2004-11-291-5/+0
| | | | | | | | | | | | | | | | | * eval.c (rb_funcall_rescue): new function. * object.c (rb_Array): avoid using rb_respond_to(). * object.c (rb_Integer): ditto. * eval.c (get_backtrace): no conversion for nil. * parse.y (reduce_nodes): empty body should return nil. * lib/cgi/session.rb (CGI::Session::initialize): [ruby-core:03832] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_stringchar.rb (test_bang): added.eban2004-11-201-0/+50
| | | | | | | | * string.c (rb_str_upcase_bang, rb_str_capitalize_bang) (rb_str_swapcase_bang): missing rb_str_modify(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wed Nov 17 23:42:40 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>nahi2004-11-171-1/+1
| | | | | | | * test/ruby/test_settracefunc.rb: added. [ruby-dev:24884] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2004-11-171-0/+26
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* backport from 1.9gotoyuzo2004-11-131-0/+38
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb (test_truncate_wbuf): we want to testusa2004-11-111-3/+3
| | | | | | | only File#truncate, not behaviour of seek(2). git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2004-10-091-0/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test String#sum for bits=0..7.akr2004-10-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2004-10-031-0/+19
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* copy test/zlib/test_zlib.rb from trunk.akr2004-09-072-0/+55
| | | | | | | | | add test for [ruby-dev:24103], [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/branches/ruby_1_8@6867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2004-09-071-0/+72
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtod): should not convert string in the form ofocean2004-07-141-3/+20
| | | | | | | | | "-I.FE-X" which both "I" and "F" are ommitted. [ruby-dev:23883] * test/ruby/test_float.rb (test_strtod): add test for bug fix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add an assertion.akr2004-06-251-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb: use local variables instead of a globalnobu2004-06-161-49/+49
| | | | | | | variable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: leading 0 padding of timestamp usec part.nahi2004-05-271-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/csv.rb (CSV.parse): [CAUTION] behavior changed. in the past, CSV.parse accepts a filename to be read-opened (it was just a shortcut of CSV.open(filename, 'r')). now CSV.parse accepts a string or a stream to be parsed e.g. CSV.parse("1,2\n3,r") #=> [['1', '2'], ['3', '4']] * lib/csv.rb: CSV::Row and CSV::Cell are deprecated. these classes are removed in the future. in the new csv.rb, row is represented as just an Array. since CSV::Row was a subclass of Array, it won't hurt almost all programs except one which depended CSV::Row#match. and a cell is represented as just a String or nil(NULL). this change will cause widespread destruction. CSV.open("foo.csv", "r") do |row| row.each do |cell| if cell.is_null # using Cell#is_null p "(NULL)" else p cell.data # using Cell#data end end end must be just; CSV.open("foo.csv", "r") do |row| row.each do |cell| if cell.nil? p "(NULL)" else p cell end end end * lib/csv.rb: [CAUTION] record separator(CR, LF, CR+LF) behavior change. CSV.open, CSV.parse, and CSV,generate now do not force opened file binmode. formerly it set binmode explicitly. with CSV.open, binmode of opened file depends the given mode parameter "r", "w", "rb", and "wb". CSV.parse and CSV.generate open file with "r" and "w". setting mode properly is user's responsibility now. * lib/csv.rb: accepts String as a fs (field separator/column separator) and rs (record separator/row separator) * lib/csv.rb (CSV.read, CSV.readlines): added. works as IO.read and IO.readlines in CSV format. * lib/csv.rb: added CSV.foreach(path, rs = nil, &block). CSV.foreach now does not handle "| cmd" as a path different from IO.foreach. needed? * test/csv/test_csv.rb: updated. * test/ruby/test_float.rb: added test_strtod to test Float("0"). git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2004-04-061-0/+73
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test_symmetry_bignum.akr2004-04-011-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/*: should not depend on $KCODE.nahi2004-02-1833-66/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/marshaltestlib.rb: common marshal testcase added.nahi2004-02-171-286/+11
| | | | | | | | | | | * test/ruby/test_marshal.rb: use above testsuite. * test/soap/marshal/test_marshal.rb: ditto. * test/soap/marshal/cmarshal.rb: removed (not used). git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2004-02-171-0/+494
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb (TestFile::test_fnmatch): added tests forakira2004-02-112-0/+26
| | | | | | | | | | | | | File.fnmatch. [ruby-dev:22815][ruby-dev:22819] * test/ruby/test_proc.rb (TestProc::test_eq): added a test. [ruby-dev:22599] * test/ruby/test_proc.rb (TestProc::test_eq): added tests for Proc#==. [ruby-dev:22592], [ruby-dev:22601] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_read): clear the buffer argumentnobu2003-12-241-0/+20
| | | | | | | | | | when returning nil. [ruby-dev:22363] * test/ruby/ut_eof.rb (TestEOF::test_eof_0, TestEOF::test_eof_1): add buffer argument tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (read_all): do not return nil at the end of file.matz2003-12-231-10/+10
| | | | | | | | | | | | | | | | | | | | | | | [ruby-dev:22334] * io.c (argf_read): do not depend on nil at eof behavior of IO#read(). * eval.c (rb_thread_join): dup exception before re-raising it. * io.c (rb_io_eof): call clearerr() to prevent side effect. this patch is supplied by Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>. [ruby-dev:22234] * pack.c (OFF16): get offset for big endian machines. * pack.c (pack_pack): use OFF16 instead of OFF16B. [ruby-dev:22344] * pack.c (pack_unpack): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_ungetc): raise an exception at unread stream tonobu2003-12-231-7/+3
| | | | | | | | | | avoid unspecified behavior. [ruby-dev:22330] * test/ruby/test_system.rb (test_syntax): glob relatively from __FILE__. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/encodings/US-ASCII.rb: typo. [ruby-talk:88650]nahi2003-12-231-2/+2
| | | | | | | | | | * test/ruby/test_system.rb: num of asserts depended on running dir. * test/xsd/test_noencoding.rb: rexml + without iconv/uconv cannot handle euc-jp. install iconv, uconv or xmlscan. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_read): set EOF flag at short read.nobu2003-12-101-20/+29
| | | | | | | [ruby-dev:22223], [ruby-dev:22224] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_read): do not set EOF flag whennobu2003-12-101-0/+3
| | | | | | | requested length is zero. [ruby-dev:22214] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e