summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* fix skip condition.akr2009-07-171-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (socket_s_ip_address_list): drop inactiveusa2009-07-173-4/+13
| | | | | | | | | | | adapters. * test/socket/test_{nonblock,addrinfo,socket}.rb: skip some tests on Windows. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (recursive_hash): reject recursive key.akr2009-07-171-3/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (recursive_join): raise ArgumentError for joiningmatz2009-07-171-2/+2
| | | | | | | | | | | recursive array. * array.c (ary_join_1): ditto. * test/ruby/test_array.rb (TestArray#test_join2): test updated for recursive join. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove test for recursive hash key. [ruby-core:22921]akr2009-07-171-6/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole.rb (test_s_codepage_changed,suke2009-07-162-17/+48
| | | | | | | | | | | test_s_locale_set, test_s_locale_change): skip test if Japanese locale is not installed. [ruby-core:23806] * test/win32ole/test_win32ole_variant.rb (test_conversion_str2cy): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * id.c (Init_id), vm.c (vm_exec): @#__ThrowState__ is no longernobu2009-07-161-0/+19
| | | | | | | used. [ruby-dev:38760] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_alias): fix a case which try non-existing method alias.ko12009-07-161-0/+8
| | | | | | | | * test/ruby/test_alias.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_reopen): discards read buffer. [ruby-core:24240]nobu2009-07-161-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rb_random_t): objectified. [EXPERIMENTAL]nobu2009-07-161-80/+80
| | | | | | | [ruby-dev:30954] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Set tempfile name with literal.naruse2009-07-141-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_initialize): check if the descriptor can be accessednobu2009-07-141-0/+3
| | | | | | | in the specified open mode. [ruby-dev:38571] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Follow tests for changes of ENV's encoding.naruse2009-07-131-2/+3
| | | | | | | * test/ruby/test_m17n.rb (TestM17N#test_env): the encoding of ENV is now locale encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_case.rb (TestCase#test_deoptimization):yugui2009-07-131-0/+11
| | | | | | test for [ruby-core:23190]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prime.rb (Prime#prime_division): now decomposesyugui2009-07-131-0/+5
| | | | | | | | negative integer into a decomposition with element [-1, 1]. * test/test_prime.rb: test for it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io_m17n.rb (test_strip_bom): added.naruse2009-07-111-0/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_join_1): should recurse for element array.nobu2009-07-101-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/extconf.rb: checked rl_refresh_line in readline.kouji2009-07-101-0/+1
| | | | | | | | * ext/readline/readline.c (readline_s_refresh_line): add new method, a patch from Koichiro Ohba. see [ruby-list:45922]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/extconf.rb: checked rl_line_buffer and rl_point inkouji2009-07-101-32/+78
| | | | | | | | | | readline. * ext/readline/readline.c (readline_s_get_line_buffer): new method. (readline_s_get_point): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb (test_join2): fixed typo.nobu2009-07-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (recursive_join): use obj to tell if recursion occurs.nobu2009-07-102-4/+18
| | | | | | | | | [ruby-core:24150] * enum.c (enum_join): reverted r23966. [ruby-core:24196] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add test for marshaling regexp.naruse2009-07-101-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_search_superclass): checks for implicitnobu2009-07-101-0/+8
| | | | | | | argument passing before method search. [ruby-core:24244] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_basename): returns new string instead ofnobu2009-07-081-2/+4
| | | | | | | shared string from FilePathStringValue(). [ruby-core:24199] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (rb_enum_join): non-nil separator must be convertible tonobu2009-07-071-0/+9
| | | | | | | String. [ruby-core:24172] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (make_curry_proc): should propagate lambda-ness.nobu2009-07-061-0/+7
| | | | | | | [ruby-core:24127] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_module.rb (TestModule#test_undef): adjust tomatz2009-07-062-4/+4
| | | | | | | | | | message change. * test/ruby/test_object.rb (TestObject#test_redefine_method_which_may_case_serious_problem): ditto. * test/ruby/test_object.rb (TestObject#test_remove_method): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_join): deals with self recursive objects to get ridnobu2009-07-061-0/+14
| | | | | | | of infinite recursion. [ruby-core:24150] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_threadptr_exec_event_hooks): new function tonobu2009-07-051-0/+5
| | | | | | | execute event hooks, with preserving errinfo. [ruby-core:24118] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_yield_setup_block_args): restores the firstnobu2009-07-041-0/+7
| | | | | | | arg where is overwritten at funcall. [ruby-core:24139] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c (nucomp_equal_p): removed.tadf2009-07-031-12/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c: renamed equal_p to eqeq_p.tadf2009-07-032-1/+20
| | | | | | | | | | | * complex.c: ditto. * complex.c (nucomp_equal_p): added. Complex(NaN).equal?(Complex(NaN)) should return true. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c: undef-ed shome methods. [ruby-core:24110]tadf2009-07-031-2/+4
| | | | | | | | * complex.c (Numeric#arg): NaN for NaN. [ruby-core:24116] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't use a string for Time.at argument.akr2009-07-021-15/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: 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