summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_rubyopt):matz2009-06-262-6/+5
| | | | | | | | | | test suite add '.' to RUBYLIB. remove checks. * test/ruby/test_require.rb (TestRequire#test_tainted_loadpath): the default tempdir directory /tmp is world writable, so SecrurityError would be raised. check removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reduce tests.akr2009-06-261-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* $: doesn't contains "." now.akr2009-06-221-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_each_codepoint): new method.matz2009-06-221-0/+5
| | | | | | | | [ruby-core:23949] * ext/stringio/stringio.c (strio_each_codepoint): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_div): don't use num_floor which is actuallytadf2009-06-201-0/+4
| | | | | | | | | | | | | | | | flo_floor. * numeric.c (num_modulo): don't call '%'. * numeric.c (num_divmod): use num_modulo. * numeric.c: defined '%'. * rational.c (nurat_idiv,nurat_mod,nurat_divmod,nurat_rem): removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't use /tmp as example socket path.akr2009-06-182-16/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c (nurat_s_convert): calls to_r when the given argumenttadf2009-06-182-4/+4
| | | | | | | | | | | is non-integer. * rational.c (nurat_s_convert): raises TypeError when the given argument is nil. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 1.4.0 r5083.ryan2009-06-181-14/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flo_cmp): Infinity is greater than any bignummatz2009-06-171-0/+5
| | | | | | | | number. [ruby-dev:38672] * bignum.c (rb_big_cmp): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_fdiv): checks whether the given second argumenttadf2009-06-171-0/+18
| | | | | | | | | | | | | | can be converted to float properly. * numeric.c (fix_fdiv): calls rb_big_fdiv when the given second argument is a bignum. * rational.c (nurat_fdiv): should calculate Float(x/y), not Float(x)/Float(y). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): should not capture BOM.nobu2009-06-171-1/+1
| | | | | | | * test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): skips BOM. [ruby-dev:38666]nobu2009-06-171-2/+3
| | | | | | | * test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c (Init_strscan): remove obsoletematz2009-06-171-2/+1
| | | | | | matchedsize method, use matched_size instead. [ruby-dev:38591] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c (nucomp_coerce): accepts Complex instances.tadf2009-06-162-0/+14
| | | | | | | | | * rational.c (nurat_coerce): accepts Rational instances. [ruby-core:23859] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_argf.rb (TestArgf#test_skip): updated testmatz2009-06-161-6/+2
| | | | | | according to clarified behavior. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c, vm_eval.c: add Thread.backtrace.ko12009-06-141-0/+10
| | | | | | | | * test/ruby/test_thread.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_ivar): should not set internal encoding ivar as annobu2009-06-131-0/+8
| | | | | | | ordinary ivar. [ruby-dev:38596] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to RubyGems 1.3.4 r2223drbrain2009-06-0953-770/+2138
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* removed extra spaces.tadf2009-06-072-7/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_filter.rb: add tests. see [ruby-dev:37856]kazu2009-06-021-0/+54
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (cont_capture, fiber_store): reraise transferred error.nobu2009-06-011-0/+5
| | | | | | | | * 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/trunk@23616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (rb_gmtime, rb_localtime): gmtime and localtime returnnobu2009-05-251-1/+1
| | | | | | | NULL on error. [ruby-core:23551] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_rpartition): ditto.nobu2009-05-241-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_hash.rb (TestHash::test_equal2): recursive hashesmatz2009-05-242-2/+4
| | | | | | | | 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/trunk@23563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_partition): should use the converted result. anobu2009-05-241-0/+2
| | | | | | | patch from Marc-Andre Lafortune at [ruby-core:23540]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_time.rb: make tests timezone independent.akr2009-05-181-2/+2
| | | | | | | | reported by zunda. [ruby-dev:38492] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rss/test_maker_atom_feed.rb: suppress warnings.kou2009-05-161-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb, test/test_parser_1.0.rb: fix foaf:Imagekou2009-05-161-0/+16
| | | | | | | element causes parse error even if ignore_unknown_element mode. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker.rb, lib/rss/maker/0.9.rb,kou2009-05-165-0/+40
| | | | | | | test/test_maker_*.rb: add RSS::Maker.supported? git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/content/*, lib/rss/dublincore/*: fix circular require.kou2009-05-161-1/+1
| | | | | | | | * test/test_maker_atom_feed.rb, test/test_maker_atom_entry.rb: suppress warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/feed.rb, test/test_maker_atom_feed.rb:kou2009-05-161-1/+27
| | | | | | | remove needless codes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/feed.rb, test/test_maker_atom_entry.rb,kou2009-05-162-0/+29
| | | | | | | | test/test_maker_atom_feed.rb: fix duplicated dc:date. Reported by Kazuhiro NISHIYAMA. Thanks!!! [ruby-list:46014] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/base.rb, lib/rss/maker/1.0.rb, lib/rss/maker/feed.rb,kou2009-05-162-0/+29
| | | | | | | | | test/rss/test_maker_1.0.rb, test/rss/test_maker_atom_feed.rb: RSS 1.0 and Atom feed maker treat maker.channel.language as maker.channel.dc_language. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb, test/rss/test_version.rb (RSS::VERSION): 0.2.5 -> 0.2.6.kou2009-05-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_ungetbyte): encoding should notnobu2009-05-142-0/+31
| | | | | | | be effective. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test.akr2009-05-121-0/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_float.rb (TestFloat#test_sleep_with_Float): add akazu2009-05-091-0/+5
| | | | | | | test. see [ruby-core:23282] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb: use subsec instead of nsec.tadf2009-05-091-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rubyoptions.rb (test_indentation_check): add a testmame2009-05-071-0/+11
| | | | | | | for indentation check. [ruby-dev:38382] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_flatten_bang): returns nil if nothing changed.nobu2009-05-071-0/+3
| | | | | | | a patch from Marc-Andre Lafortune in [ruby-core:23382]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_sample): negative sample number is invalid.nobu2009-05-071-0/+2
| | | | | | | [ruby-core:23374] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: use RbConfig instead of Config.akr2009-04-301-1/+1
| | | | | | | | | | | | * instruby.rb: ditto. * lib/rubygems.rb: ditto. * test/rubygems/test_config.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * runruby.rb: use RbConfig::CONFIG instead of Config::CONFIG.akr2009-04-303-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | * spec/default.mspec: ditto. * yarvtest/yarvtest.rb: ditto. * instruby.rb: ditto. * benchmark/report.rb: ditto. * benchmark/runc.rb: ditto. * tool/eval.rb: ditto. * test/rubygems/test_gem.rb: ditto. * test/rubygems/test_config.rb: ditto. * test/rubygems/test_gem_platform.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/test_timeout.rb (TestTimeout#test_timeout): add a test.kazu2009-04-281-1/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/utf8_mac.trans: Add converter for UTF8-MAC.naruse2009-04-261-0/+8
| | | | | | | | * enc/trans/utf8_mac-tbl.rb: ditto. * test/ruby/test_econv.rb: tests for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#parse_in_order): do not make annobu2009-04-262-0/+10
| | | | | | | option from non-option argument. [ruby-dev:38333] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (Zlib::GzipFile#path): New method.knu2009-04-221-0/+28
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time#rfc2822): pad leading zeros for year.akr2009-04-211-0/+13
| | | | | | | | | (Time#httpdate): ditto. (Time#xmlschema): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time#xmlschema): use subsec instead of nsec.akr2009-04-211-0/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_arg): use the year argument as-is. [ruby-dev:38194]akr2009-04-211-2/+0
| | | | | | | | * lib/time.rb (Time.parse): interpret small year 0..99 as 1950..2049. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e