summaryrefslogtreecommitdiffstats
path: root/test/ruby
Commit message (Collapse)AuthorAgeFilesLines
* * eval.c (mnew): call of super via a method object should work again.shyouhei2007-05-261-0/+11
| | | | | | | | | | | [ruby-talk:248647], Thanks Calamitas. * test/ruby/test_method.rb (TestMethod::test_method_super): test for above fix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@12391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge -c 12126shyouhei2007-05-221-0/+30
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@12309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_iterate): need to PUSH_ITER in proper order.matz2007-01-311-0/+12
| | | | | | | | | | [ruby-core:10125] * test/ruby/test_iterator.rb (TestIterator::test_block_given_within_iterator): add new test. [ruby-core:10125] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): fixed bug of zsuper with both of opt and rest.usa2006-10-311-0/+17
| | | | | | | | | fixed: [ruby-list:42928] * test/ruby/test_super.rb: add tests to check above bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use assert_same instead of assert_equal.akr2006-09-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (TestProcess#test_rlimit_nofile):akr2006-07-311-1/+5
| | | | | | | | setrlimit may fail with EINVAL. reported by MIYAMUKO Katsuyuki. [ruby-dev:29174] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_float.rb (TestFloat::test_strtod): update test tomatz2006-07-181-5/+0
| | | | | | | conform strtod change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use fork to isolate rlimit effect.akr2006-06-211-7/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add RLIMIT_NOFILE testakr2006-06-151-1/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* give dummy argument for Process.getrlimit and rescue TypeError.akr2006-06-151-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2006-06-151-0/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_div): use floor rather than rb_Integer().matz2006-05-011-0/+28
| | | | | | | | | | | | | | [ruby-dev:28589] * numeric.c (flo_divmod): the first element of Float#divmod should be an integer. [ruby-dev:28589] * test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder. * util.c (ruby_strtod): fixed wrong conversion. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix string interpolationakr2006-03-041-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2006-03-041-0/+35
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtod): Float("1e") should fail. [ruby-core:7330]ocean2006-02-172-0/+4
| | | | | | | | | | | * pack.c (EXTEND32): unpack("l") did not work where sizeof(long) != 4. [ruby-talk:180024] * pack.c (pack_unpack): fixed integer overflow on template "w". [ruby-talk:180126] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (eval): no need to push ruby_class. [ruby-dev:28176]matz2006-02-111-1/+5
| | | | | | | | | * eval.c (rb_f_autoload): check if ruby_cbase is nil (during instance_eval for objects cannot have singleton classes, e.g. fixnums and symbols). [ruby-dev:28178] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2006-01-011-0/+42
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (EnvUtil.rubybin): search "ruby" instead ofakr2005-12-291-4/+4
| | | | | | | "miniruby". [ruby-dev:28140] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * stable version 1.8.4 released.matz2005-12-241-1/+1
| | | | | | | | * ext/digest/sha2/sha2.c (ULL): support AIX C. a patch from Kailden <kailden at gmail.com>. [ruby-core:06984] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_symname_p): fixed wrong validation. [ruby-dev:28047]nobu2005-12-191-0/+27
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_basename): skip slashes just after UNC top slashes.usa2005-11-221-15/+114
| | | | | | | | * test/ruby/test_path.rb (test_dirname, test_basename): follow new spec. and add new tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb (test_misc): added some testsocean2005-11-201-0/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_dirname): should use skipprefix for UNC path.usa2005-11-181-6/+14
| | | | | | | pointed out by nobu ([ruby-dev:27744]). fixed: [ruby-core:5076] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_s_dirname): added checks for some patterns with driveusa2005-11-181-0/+71
| | | | | | | | | | letter. fixed: [ruby-dev:27738] * test/ruby/test_path.rb (test_dirname): added tests for above patterns. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_fill): tail elements were vanished when the middleocean2005-11-151-0/+23
| | | | | | | | | part of array was filled. (ie: [0,1,2,3,4].fill(-1,2,1) => [0,1,-1]) * test/ruby/test_array.rb (test_fill): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2005-11-021-0/+50
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_float.rb (test_precision): test by assert_in_delta.ocean2005-10-301-4/+4
| | | | | | | [ruby-dev:27575] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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