aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * include/ruby/intern.h (rb_time_num_new): declared.akr2009-07-011-0/+1
| | | | | | | | | | | | | | * time.c (nsec2timev): extracted from time_new_internal. (time_new_internal): change argument to VALUE. (rb_time_new): follow the argument change. (rb_time_nano_new): ditto. (rb_time_num_new): new function. * ext/socket/ancdata.c (ancillary_timestamp): use rb_time_num_new to represent struct bintime preciously. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_marshal.rb (TestMarshal#test_limit): test fornobu2009-07-011-0/+1
| | | | | | | [ruby-core:24100]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): fix for files with dots. [ruby-dev:38588]nobu2009-06-291-0/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c (nurat_cmp): use rb_num_coerce_cmp.tadf2009-06-271-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS, lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: addkou2009-06-271-0/+20
| | | | | | | item.guid.permanent_link? and item.guid.permanent_link=. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: rss: 0.2.5 -> 0.2.7.kou2009-06-271-1/+1
| | | | | | | * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.6 -> 0.2.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reduce tests.akr2009-06-261-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* $: doesn't contains "." now.akr2009-06-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't use /tmp as example socket path.akr2009-06-182-16/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 1.4.0 r5083.ryan2009-06-181-14/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to RubyGems 1.3.4 r2223drbrain2009-06-0953-770/+2138
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* removed extra spaces.tadf2009-06-072-7/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_rpartition): ditto.nobu2009-05-241-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test.akr2009-05-121-0/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb: use subsec instead of nsec.tadf2009-05-091-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e