summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Removed json/runner.rb with permission from florian frank. it was serving no ↵ryan2008-12-151-25/+0
| | | | | | purpose git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2008-12-151-0/+60
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (get_device_once): use DEVICELEN instead ofakr2008-12-151-4/+0
| | | | | | | | sizeof SlaveName. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20759 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
* new file.akr2008-12-141-0/+46
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20732 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
* Imported minitest 1.3.2 r4503.ryan2008-12-131-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.ckouji2008-12-121-6/+12
| | | | | | | | (readline_s_get_completion_append_character): uses locale encoding but not ASCII-8BIT. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker.rb, lib/rss/maker/0.9.rb, lib/rss/maker/base.rb:kou2008-12-115-0/+27
| | | | | | | | | RSS::Maker.[] returns a maker class corresponds to passed version. * test/rss/test_maker_*.rb: add tests for RSS::Maker.[]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20643 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
* * lib/open3.rb (Open3.pipeline_start): return an array of threads if aakr2008-12-101-0/+9
| | | | | | | block is not given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20618 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
* * lib/open3.rb (Open3.capture3): renamed from Open3.poutput3.akr2008-12-071-8/+8
| | | | | | | | (Open3.capture2): renamed from Open3.poutput2. (lOpen3.capture2e): renamed from Open3.poutput2e. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20569 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
* fix for 1.8'sxibbar2008-12-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.pipeline_start): new method.akr2008-12-051-0/+35
| | | | | | | (Open3.pipeline): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20544 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
* * lib/open3.rb (Open3.poutput3): new method.akr2008-12-041-0/+26
| | | | | | | | | (Open3.poutput2): ditto. (Open3.poutput2e): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20516 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
* * lib/open3.rb (Open3.popen3): simplified.akr2008-12-041-85/+53
| | | | | | | | | | | | | | (Open3.popen_run): extracted from Open3.popen3. (Open3.popen2): new method. (Open3.popen2e): new method. (Open3.pipeline_rw): new method. (Open3.pipeline_r): new method. (Open3.pipeline_w): new method. (Open3.pipeline_run): new private method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20512 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
* * ext/openssl/ossl_ssl.c (ossl_ssl_read_nonblock):matz2008-12-041-0/+15
| | | | | | | OpenSSL::SSL::SSLSocket should implement read_nonblock. a patch from Aaron Patterson in [ruby-core:20277]. fix: #814 [ruby-core:20241] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20493 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
* * lib/open3.rb (Open3.popen3): merge hash options if given. akr2008-12-021-0/+205
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_tcp.rb (test_recvfrom): already can run on mswin32.usa2008-12-021-3/+2
| | | | | | | | * test/socket/test_tcp.rb (test_recvfrom, test_encoding): use IP address instead of host name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_tcp.rb (test_recvfrom, test_encoding): shouldn't assumeusa2008-12-021-4/+4
| | | | | | | that th is not nil. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20440 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
* * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): bigdecimalmatz2008-11-271-3/+1
| | | | | | | division (including modulo) should raise ZeroDivisionError as integer division. [incompatible] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20383 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
* * ext/bigdecimal/bigdecimal.c (VpException): bigdecimal zeromatz2008-11-261-1/+5
| | | | | | | | | | division should raise FloatDomainError if mode VP_EXCEPTION_ZERODIVIDE is set. [ruby-dev:37204] * ext/bigdecimal/bigdecimal.c (BigDecimal_mode): should handle VP_EXCEPTION_ZERODIVIDE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpAlloc): avoid ALLOCA_N() to avoidmatz2008-11-251-3/+3
| | | | | | | | | | | | | | segmentation fault caused by (insanely) long decimal values. [ruby-dev:37189] fix #794 * ext/bigdecimal/bigdecimal.c (BigDecimal_dump, BigDecimal_to_i, BigDecimal_to_f, BigDecimal_to_s, BigDecimal_split, BigDecimal_inspect): ditto. * ext/bigdecimal/bigdecimal.c (VpToString): small performance improvement. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (strftime): ignores '_' flag for %[LN].tadf2008-11-241-0/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20347 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