summaryrefslogtreecommitdiffstats
path: root/test/ruby
Commit message (Collapse)AuthorAgeFilesLines
* 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
* merges r20944 from trunk into ruby_1_9_1.yugui2008-12-251-0/+1
| | | | | | | * strftime.c (rb_strftime): use locale insensitive functions for tr_TR locale. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20747 and r20802 from trunk into ruby_1_9_1.yugui2008-12-171-0/+167
| | | | | | | | | | | | | | | | | | | | | | * test/ruby/test_metaclass.rb: new test case for metaclass hierarchy. * class.c (make_metametaclass): new function. extracted from rb_make_metaclass. * class.c (rb_make_metaclass): uses make_metametaclass when called for a metaclass. * class.c (rb_singleton_class): creates a meta^(n+2)-class in addition to a meta^(n+1)-class when called for a meta^(n)-class. This is because the returned meta^(n+1) class must acts as an instance of Class, metaclass of Class, ..., meta^(n+1)-class of Class, Module, metaclass of Module, ..., meta^(n+1)-class of Module, Object, metaclass of Object, ..., meta^(n+2)-class of Object, BasicObject, metaclass of BasicObject, ..., meta^(n+2)-class of and BasicObject even when Class, Module, Object or BasicObject has not have its meta^(i)-class yet. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/enc/test_utf16.rb: feature changed in r20626.yugui2008-12-131-1/+1
| | | | | | | follows it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_m17n_comb.rb: feature changed in r20626.yugui2008-12-131-3/+7
| | | | | | | follows it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20714 from trunk into ruby_1_9_1.yugui2008-12-131-11/+11
| | | | | | | * test/ruby/test_m17n.rb: feature changed in r20626. follows it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20630 from trunk into ruby_1_9_1.yugui2008-12-131-11/+21
| | | | | | | * test/ruby/test_io.rb (test_dup_many): extracted from test_dup. test in ruby subprocess. at asakusa.rb. [ruby-dev:35648] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20621 from trunk into ruby_1_9_1.yugui2008-12-131-12/+0
| | | | | | | | * test/ruby/test_bignum.rb (TestBignum#test_convert): remove platform dependent call of Process.wait. coverage should be accomplished by other method. [ruby-dev:36062] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20599 from trunk into ruby_1_9_1.yugui2008-12-131-32/+160
| | | | | | | | | | | * enc/trans/single_byte.trans, cp850-tbl.rb, cp852-tbl.rb, cp855-tbl.rb, koi8-r-tbl.rb, koi8-u-tbl.rb, tis-620-tbl.rb: new single-byte transcodings (from Yoshihiro Kambayashi) * test/ruby/test_transcode.rb: added tests for the above (from Yoshihiro Kambayashi), small cosmetic fixes git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20580 from trunk into ruby_1_9_1.yugui2008-12-121-0/+12
| | | | | | | * pack.c (pack_pack): fixed length for odd length string. [ruby-dev:37283] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20564 from trunk into ruby_1_9_1.yugui2008-12-121-0/+4
| | | | | | * pack.c (pack_pack): 'u0' is not special differently from 'm0'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20514 from trunk into ruby_1_9_1.yugui2008-12-052-1/+42
| | | | | | | | * test/ruby/test_complex.rb: added some tests. * test/ruby/test_rational.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20474 from trunk into ruby_1_9_1.yugui2008-12-041-0/+10
| | | | | | | * complex.c (nurat_{to_s,inspect}): provides better representation for in-finite imag part. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20452 from trunk into ruby_1_9_1.yugui2008-12-041-0/+9
| | | | | | * test/ruby/test_range.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20451 from trunk into ruby_1_9_1.yugui2008-12-041-0/+43
| | | | | | * test/ruby/test_string.rb: add some tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20432 from trunk into ruby_1_9_1.yugui2008-12-011-0/+4
| | | | | | | * cont.c (rb_fiber_start): calls with exact argument number. [ruby-core:20088] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20391 and r20398 from trunk into ruby_1_9_1.yugui2008-11-301-1/+3
| | | | | | | * regparse.c (is_invalid_quantifier_target): Perl and old Ruby accepts quantifier on anchors. [ruby-core:20161] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20342 from trunk to ruby_1_9_1.yugui2008-11-301-0/+7
| | | | | | | | * strftime.c (rb_strftime): The # flag should work with %a, %A, %b, %B, and %h. [ruby-dev:37162] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20340 from trunk into ruby_1_9_1.yugui2008-11-301-0/+12
| | | | | | | | * strftime.c (rb_strftime): A width specifier for %t and %n should work. [ruby-dev:37160] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20339 from trunk into ruby_1_9_1.yugui2008-11-301-1/+1
| | | | | | | * strftime.c (rb_strftime): The precision of %0N should be 9. [ruby-dev:37156] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20338 from trunk into ruby_1_9_1.yugui2008-11-301-0/+5
| | | | | | | | * strftime.c (rb_strftime): The default precision should be 1, not 0. [ruby-dev:37155] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_method.rb (TestMethod#test_default_accessibility):yugui2008-11-221-4/+4
| | | | | | | fixed a wrong expectation in the test case. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_method.rb (test_default_accessiblity): test case foryugui2008-11-221-0/+17
| | | | | | | | [ruby-dev:37124]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20053 and r20067 from trunk into ruby_1_9_1.yugui2008-11-111-0/+4
| | | | | | | | | | | | * ruby.c (moreswitches): splits option string and passes arguments. * ruby.c (proc_options): checks if allowed in RUBYOPT. * ruby.c (process_options): allows long style options in RUBYOPT. * ruby.c (load_file_internal): ditto in shebang. [ruby-dev:36979] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20179 from trunk into ruby_1_9_1.yugui2008-11-111-15/+0
| | | | | | | * test/ruby/test_transcode.rb: unnecessary setup method (setup_really_needed?) removed git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20178 from trunk into ruby_1_9_1.yugui2008-11-111-0/+347
| | | | | | | | | | | | | | * enc/trans/single_byte.trans, macgreek-tbl.rb, macroman-tbl.rb, macromania-tbl.rb, macturkish-tbl.rb, macukraine-tbl.rb, ibm437-tbl.rb, ibm852-tbl.rb, ibm855-tbl.rb, ibm857-tbl.rb, ibm860-tbl.rb, ibm861-tbl.rb, ibm862-tbl.rb, ibm863-tbl.rb, ibm865-tbl.rb, ibm866-tbl.rb, ibm869-tbl.rb, ibm775-tbl.rb: new single-byte transcodings (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@20207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20177 from trunk into ruby_1_9_1.yugui2008-11-112-2/+2
| | | | | | trivial changes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merged r20075 from trunk into ruby_1_9_1.yugui2008-10-311-0/+73
| | | | | | | | | | | * enc/trans/single_byte.trans, maccroatioan-tbl.rb, maccyrillic-tbl.rb, maciceland-tbl.rb: new single-byte transcodings (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@20083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb (test_array_subclass) test for r20076.yugui2008-10-311-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20045 from trunk into ruby_1_9_1.yugui2008-10-301-8/+16
| | | | | | | | | | | | * io.c (rb_io_rewind): should reset fptr->readconv if it's available. * io.c (more_char): clear readconv at EOF. * test/ruby/test_file.rb: should not read after EOF. use rewind instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_sort_bang): remove SEGV when replacing array withmame2008-10-291-0/+8
| | | | | | | | | embedded one during sort. * test/ruby/test_array.rb (test_sort!): add tests for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb: add some tests.mame2008-10-291-0/+29
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e