summaryrefslogtreecommitdiffstats
path: root/test/ruby
Commit message (Collapse)AuthorAgeFilesLines
...
* * test/ruby/test_eval.rb: add new test.usa2008-12-251-0/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime): use locale insensitive functions for tr_TRakr2008-12-231-0/+1
| | | | | | | locale. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_inspect): show fd number if there is no pathname.akr2008-12-231-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_s_pipe): IO.pipe can take a block.akr2008-12-221-0/+28
| | | | | | | (pipe_close): new function. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_metaclass.rb: removed codes for my debugging.yugui2008-12-171-2/+0
| | | | | | sorry. [ruby-dev:37470] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_metaclass.rb: new test case for metaclass hierarchy.yugui2008-12-151-0/+169
| | | | | | | | | | | | | | | | | | | | * 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/trunk@20747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_mul): faster multiplication by Karatsuba method andmame2008-12-141-0/+20
| | | | | | | | | | | twice faster square than normal multiplication. * random.c (rb_rand_internal): used by Bignum#*. * test/ruby/test_bignum.rb: add some tests for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20733 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/trunk@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/trunk@20718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_m17n.rb: feature changed in r20626.yugui2008-12-131-11/+11
| | | | | | follows it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_dup_many): extracted from test_dup.akr2008-12-111-11/+21
| | | | | | | test in ruby subprocess. at asakusa.rb. [ruby-dev:35648] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_bignum.rb (TestBignum#test_convert): removematz2008-12-111-12/+0
| | | | | | | 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/trunk@20621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/single_byte.trans, cp850-tbl.rb, cp852-tbl.rb,duerst2008-12-091-32/+160
| | | | | | | | | | | 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/trunk@20599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_pack): fixed length for odd length string.nobu2008-12-081-0/+12
| | | | | | | [ruby-dev:37283] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_pack): 'u0' is not special differently from 'm0'.yugui2008-12-061-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (rb_iseq_parameters): proc arguments are always optional.nobu2008-12-051-9/+9
| | | | | | | * proc.c (get_proc_iseq, rb_proc_parameters): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb: skip some tests on win32.usa2008-12-041-7/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_complex.rb: added some tests.tadf2008-12-042-1/+42
| | | | | | | | * test/ruby/test_rational.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (check_exec_fds): resolve cascaded child fd reference.akr2008-12-041-8/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c (nurat_{to_s,inspect}): provides better representationtadf2008-12-031-0/+10
| | | | | | | | for in-finite imag part. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (EXEC_OPTION_DUP2_CHILD): defined.akr2008-12-031-0/+20
| | | | | | | | | | | | (check_exec_redirect_fd): check :in, :out and :err. (check_exec_redirect): check [:child, fd]. (check_exec_fds): validate EXEC_OPTION_DUP2_CHILD array. (run_exec_dup2_child): new function. (rb_run_exec_options): call run_exec_dup2_child. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (check_exec_redirect): accept :in, :out, :err as redirectakr2008-12-031-0/+5
| | | | | | | target. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert.tadf2008-12-031-3/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rational.rb: add a test.mame2008-12-021-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_range.rb: add a test.mame2008-12-021-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_string.rb: add some tests.mame2008-12-021-0/+43
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (rb_fiber_start): calls with exact argument number.nobu2008-12-011-0/+4
| | | | | | | [ruby-core:20088] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_regexp.rb (TestRegexp#test_parse_curly_brace):yugui2008-11-301-1/+3
| | | | | | | now accepts quantifier on anchrs agian by r20391. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (simple_default_value): extracts simplest defaultnobu2008-11-282-0/+113
| | | | | | | | | | | | | | | argument value. * iseq.c (rb_iseq_parameters): returns parameter list. * proc.c (get_proc_iseq, get_method_iseq): handles ifunc and bmethod. * proc.c (rb_proc_parameters, rb_method_parameters): added Proc#parameters and Method#parameters. [ruby-core:19759] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flodivmod): floating point division should raisematz2008-11-271-3/+1
| | | | | | ZeroDivisionError as integer division. [incompatible] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime): The # flag should work with %a, %A, %b,shugo2008-11-241-0/+7
| | | | | | | | %B, and %h. [ruby-dev:37162] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime): A width specifier for %t and %n shouldshugo2008-11-241-0/+12
| | | | | | | | work. [ruby-dev:37160] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime): The precision of %0N should be 9.shugo2008-11-241-1/+1
| | | | | | | [ruby-dev:37156] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime): The default precision should be 1, notshugo2008-11-241-0/+5
| | | | | | | | 0. [ruby-dev:37155] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20338 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/trunk@20317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_method.rb (test_default_accessiblity): test case foryugui2008-11-221-0/+16
| | | | | | | | [ruby-dev:37124]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_transcode.rb: unnecessary setup methodduerst2008-11-111-15/+0
| | | | | | | (setup_really_needed?) removed git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/single_byte.trans, macgreek-tbl.rb, macroman-tbl.rb,duerst2008-11-111-0/+347
| | | | | | | | | | | | | | 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/trunk@20178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* trivial changes.tadf2008-11-102-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20177 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/trunk@20077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/single_byte.trans, maccroatioan-tbl.rb,duerst2008-10-311-0/+73
| | | | | | | | | | | 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/trunk@20075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): delays setting safe level.nobu2008-10-301-0/+4
| | | | | | | [ruby-dev:36997] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20067 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/trunk@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/trunk@20047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_rewind): should reset fptr->readconv if it'smatz2008-10-291-8/+16
| | | | | | | | | | | 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/trunk@20045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array (test_permutation): add a test that replacesmame2008-10-291-0/+5
| | | | | | | array during permutation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb (test_pack): use utf-8.nobu2008-10-292-4/+4
| | | | | | | * test/ruby/test_pack.rb (test_pack_U): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_proc.rb: filled all patterns for testingyugui2008-10-281-0/+197
| | | | | | | vm_yield_setup_args. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_require.rb (test_require_too_long_filename): too longusa2008-10-281-5/+9
| | | | | | | commandline may be rejected by OS. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io_m17n.rb (test_getc_invalid3): should set binmode if enc isusa2008-10-281-1/+1
| | | | | | | not compatible with ASCII. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e