summaryrefslogtreecommitdiffstats
path: root/test/ruby
Commit message (Collapse)AuthorAgeFilesLines
* merges r23730 from trunk into ruby_1_9_1.yugui2009-06-211-0/+5
| | | | | | | | | | -- * numeric.c (flo_cmp): Infinity is greater than any bignum number. [ruby-dev:38672] * bignum.c (rb_big_cmp): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23718 from trunk into ruby_1_9_1.yugui2009-06-212-0/+14
| | | | | | | | | | -- * complex.c (nucomp_coerce): accepts Complex instances. * rational.c (nurat_coerce): accepts Rational instances. [ruby-core:23859] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges the latter half of r23699 and r23706 from trunk into ruby_1_9_1.yugui2009-06-211-6/+2
| | | | | | | | | | -- * io.c (argf_skip): should close only when current_file is available. -- * test/ruby/test_argf.rb (TestArgf#test_skip): updated test according to clarified behavior. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23642 from trunk into ruby_1_9_1.yugui2009-06-212-7/+7
| | | | | | | -- removed extra spaces. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23616 from trunk into ruby_1_9_1.yugui2009-06-201-0/+5
| | | | | | | | | | -- * cont.c (cont_capture, fiber_store): reraise transferred error. * cont.c (fiber_switch): transfers dead fiber error to the previouse or root fiber if the current fiber is dead. [ruby-core:23651] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23562 and r23564 from trunk into ruby_1_9_1.yugui2009-06-201-0/+4
| | | | | | | | | | -- * string.c (rb_str_partition): should use the converted result. a patch from Marc-Andre Lafortune at [ruby-core:23540]. -- * string.c (rb_str_rpartition): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23557 and r23563 from trunk into ruby_1_9_1.yugui2009-06-202-2/+4
| | | | | | | | | | | | | | | | | -- * thread.c (rb_exec_recursive_paired): new function for proper handling of recursive arrays. [EXPERIMENTAL] [ruby-core:23402] * array.c (rb_ary_equal, rb_ary_eql, rb_ary_cmp): use above. * hash.c (hash_equal): ditto. -- * test/ruby/test_hash.rb (TestHash::test_equal2): recursive hashes are handled properly now. ref: [ruby-core:23402] * test/ruby/test_m17n.rb (TestM17N#test_sprintf_p): test fixed git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23424 from trunk into ruby_1_9_1.yugui2009-05-211-0/+16
| | | | | | | | -- * ext/stringio/stringio.c (strio_ungetbyte): encoding should not be effective. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23378 from trunk into ruby_1_9_1.yugui2009-05-211-0/+5
| | | | | | | | -- * test/ruby/test_float.rb (TestFloat#test_sleep_with_Float): add a test. see [ruby-core:23282] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23362 from trunk into ruby_1_9_1.yugui2009-05-211-0/+11
| | | | | | | | -- * test/ruby/test_rubyoptions.rb (test_indentation_check): add a test for indentation check. [ruby-dev:38382] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23361 from trunk into ruby_1_9_1.yugui2009-05-211-0/+3
| | | | | | | | -- * array.c (rb_ary_flatten_bang): returns nil if nothing changed. a patch from Marc-Andre Lafortune in [ruby-core:23382]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23359 from trunk into ruby_1_9_1.yugui2009-05-211-0/+2
| | | | | | | | -- * array.c (rb_ary_sample): negative sample number is invalid. [ruby-core:23374] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23191 from trunk into ruby_1_9_1.yugui2009-05-041-0/+5
| | | | | | | | | | -- * array.c (rb_ary_flatten): flatten(0) works as Array#dup. [ruby-core:23168] * test/ruby/test_array.rb: add a test for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23160 from trunk into ruby_1_9_1.yugui2009-05-041-0/+3
| | | | | | | | | | -- * string.c (rb_str_dump): buffer length plus one byte for null terminator. [ruby-dev:38294] * test/ruby/test_m17n.rb (test_str_dump): add a test for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23159 from trunk into ruby_1_9_1.yugui2009-05-041-0/+2
| | | | | | | | -- * string.c (rb_str_rstrip_bang): should not sign-expand non-ascii. [ruby-core:23158] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23155 and r23158 from trunk into ruby_1_9_1.yugui2009-05-041-0/+5
| | | | | | | | | -- * string.c (rb_str_chop_bang): reset coderange. [ruby-core:23155] -- * test/ruby/test_string.rb (test_chop, test_chop!): tests for [ruby-core:23155]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23075 from trunk into ruby_1_9_1.yugui2009-04-191-0/+10
| | | | | | | -- * time.c (time_cmp): negate the result of reverse comparison. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r22611 from trunk into ruby_1_9_1.yugui2009-03-041-3/+7
| | | | | | | | -- * string.c (rb_str_force_encoding): should clear coderange at changing encoding. [ruby-core:22437] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@22745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r22610 from trunk into ruby_1_9_1.yugui2009-03-031-1/+2
| | | | | | | | -- * io.c (rb_io_getline_1): enables limit even if rs is given. [ruby-core:22434] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@22740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r22608 from trunk into ruby_1_9_1.yugui2009-03-031-0/+4
| | | | | | | | -- * string.c (rb_str_chomp_bang): coderange may change. [ruby-core:22414] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@22739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r22606 from trunk into ruby_1_9_1.yugui2009-03-031-0/+5
| | | | | | | | -- * string.c (rb_str_delete_bang): should recalculate coderange. [ruby-talk:329267] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@22738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r22505 and r22547 from trunk into ruby_1_9_1.yugui2009-03-031-0/+9
| | | | | | | | | | | -- * string.c (tr_trans): should not be affected by the encoding of replacement unless actually modified. [ruby-talk:328967] -- * string.c (tr_trans): should recalculate coderange. [ruby-core:22326] (reopened at [ruby-core:22328]) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@22731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21917, r21955 and r21974 from trunk into ruby_1_9_1.yugui2009-02-221-0/+46
| | | | | | | | | | | | * load.c (rb_require_safe): raises when the path to be loaded is tainted. [ruby-dev:37843] --- * file.c (rb_find_file_ext): should not be infected from other load paths. --- * adds a test case for r21955 and r21917. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@22500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (top_compstmt, top_stmts, top_stmt): prohibit BEGIN {} inmame2009-01-291-0/+6
| | | | | | | | | | non-toplevel scope. [ruby-core:21657] * test/ruby/test_beginendblock.rb (test_begininclass): add a test for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21733 from trunk into ruby_1_9_1.yugui2009-01-281-22/+24
| | | | | | * test/ruby/test_process.rb: mswin specs. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21728 from trunk into ruby_1_9_1.yugui2009-01-281-1/+1
| | | | | | | * test/ruby/test_process.rb (MANDATORY_ENVS): needs RUBYLIB to run tests without install. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21717 and r21741 from trunk into ruby_1_9_1.yugui2009-01-281-0/+13
| | | | | | Add test for String#encode. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* introduces r21693 again and merges r21713yugui2009-01-282-0/+16
| | | | | | | | | | * array.c (take_items), enum.c (enum_zip): tries to convert to array first. [ruby-core:21442] -- * array.c (take_items): to_ary() raises ArgumentError if cannot to convert to Array. [ruby-dev:37797] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * reverts r21693.yugui2009-01-202-10/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21678 from trunk into ruby_1_9_1.yugui2009-01-202-0/+10
| | | | | | | * array.c (take_items), enum.c (enum_zip): tries to convert to array first. [ruby-core:21442] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21509 and r21512 from trunk into ruby_1_9_1.yugui2009-01-151-0/+156
| | | | | | | | | | | | | | * enc/trans/gb18030.trans, gb18030-tbl.rb: new Chinese GB18030 transcoding (from Yoshihiro Kambayashi) * test/ruby/test_transcode.rb: added tests for the above (from Yoshihiro Kambayashi) * transcode_data.h, transcode.c, tool/transcode_tblgen.rb: added support for GB18030-specific 4-byte sequences (with Yoshihiro Kambayashi) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21447 from trunk into ruby_1_9_1.yugui2009-01-121-0/+1
| | | | | | | | | * win32/win32.c (open_dir_handle): extracted from rb_w32_opendir. * win32/win32.c (winnt_stat): gets rid of strange behavior of GetFileAttributes(). [ruby-core:21269] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21426 from trunk into ruby_1_9_1.yugui2009-01-121-0/+1
| | | | | | | * test/ruby/test_process.rb (TestProcess#test_wait_and_sigchild): Add rescue NotImplementedError. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21415 and r21417 from trunk into ruby_1_9_1.yugui2009-01-121-2/+2
| | | | | | | * version.h: make version string succinct: "ruby 1.9.1p5000 (2009-01-10 trunk 21414) [i686-linux]". git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21393 from trunk into ruby_1_9_1.yugui2009-01-121-5/+27
| | | | | | | * test/ruby/test_process.rb (TestProcess::MANDATORY_ENVS): some platforms need environments for shared objects. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21315 from trunk into ruby_1_9_1.yugui2009-01-041-0/+114
| | | | | | | | | | * enc/trans/gbk.trans, gbk-tbl.rb: new Chinese GBK transcoding (from Yoshihiro Kambayashi) * test/ruby/test_transcode.rb: added tests for the above (from Yoshihiro Kambayashi) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21314 from trunk into ruby_1_9_1.yugui2009-01-041-1/+49
| | | | | | | | | | * test/ruby/test_transcode.rb: added tests for GB2312 (from Yoshihiro Kambayashi) * enc/trans/chinese.trans: set valid byte patterns for GB2312 and GB12345 git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21313 from trunk into ruby_1_9_1.yugui2009-01-041-0/+67
| | | | | | | | | | * enc/trans/big5.trans, big5-tbl.rb: new Chinese Big5 transcoding (from Yoshihiro Kambayashi) * test/ruby/test_transcode.rb: added tests for the above (from Yoshihiro Kambayashi) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21279 from trunk into ruby_1_9_1.yugui2009-01-041-0/+3
| | | | | | * test/ruby/test_sleep.rb (test_sleep_5sec): stop gc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21273 from trunk into ruby_1_9_1.yugui2009-01-041-1/+1
| | | | | | | * test/ruby/test_process.rb (test_wait_and_sigchild): remove debug output. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21209 from trunk into ruby_1_9_1.yugui2009-01-011-0/+63
| | | | | | | * io.c (copy_stream_body): don't check to_io because Zlib::GzipWriter#to_io returns the underlying IO. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21181 from trunk into ruby_1_9_1.yugui2008-12-301-0/+12
| | | | | | | * process.c (rb_waitpid): retries waitpid when EINTR. [ruby-core:19744]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21148 from trunk into ruby_1_9_1.yugui2008-12-291-0/+12
| | | | | | | | | * thread.c (rb_mutex_trylock): return false if Mutex owned by current thread. [ruby-core:20943] * thread.c (rb_mutex_lock): check dead lock (recursive lock) here. * test/ruby/test_thread.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21135 from trunk into ruby_1_9_1.yugui2008-12-291-0/+3
| | | | | | * test/ruby/test_sprintf.rb (test_invalid): suppress warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20984 from trunk. c.f. [ruby-dev:37240]yugui2008-12-261-0/+17
| | | | | | * test/ruby/test_eval.rb: add new test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21047 from trunk into ruby_1_9_1.yugui2008-12-261-0/+1
| | | | | | | * transcode.c (str_transcode0): set encoding when String#encode was given explicit but the same destination and source encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20530 from trunk into ruby_1_9_1.yugui2008-12-251-7/+13
| | | | | | * test/ruby/test_process.rb: skip some tests on win32. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "trunk r28202 : [ruby-dev:37240]"yugui2008-12-251-17/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20989 from trunk into ruby_1_9_1.yugui2008-12-251-2/+2
| | | | | | | | | | | | | | | | * io.c (flush_before_seek): check io_fflush result. (rb_io_check_readable): ditto. (rb_io_flush): ditto. (rb_io_fsync): ditto. (remain_size): ditto. (rb_io_write_nonblock): ditto. (finish_writeconv): ditto. (fptr_finalize): ditto. (io_reopen): ditto. (rb_io_reopen): ditto. (copy_stream_body): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* trunk r28202 : [ruby-dev:37240]yugui2008-12-251-0/+17
| | | | | | * test/ruby/test_eval.rb: add new test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e