summaryrefslogtreecommitdiffstats
path: root/test/ruby
Commit message (Collapse)AuthorAgeFilesLines
* merges r25883 from trunk into ruby_1_9_1. fixes a backpor task #2168.yugui2009-12-052-4/+16
| | | | | | | | | -- * enc/trans/newline.trans (fun_so_universal_newline): generate \n after \r\n detection instead of just after \r. [ruby-list:45988] [ruby-core:25881] [ruby-core:26788] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@26015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25067 from trunk into ruby_1_9_1 and added a test for it.yugui2009-11-272-2/+4
| | | | | | | | | | -- * lib/mathn.rb (Bignum#**): Fixed bignum**fixnum that was broken when requiring lib/mathn [ruby-core:25740] -- * test/test_mathn.rb (TestMathn): new test case. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25010 from trunk into ruby_1_9_1 and adds tests for it.yugui2009-11-272-0/+64
| | | | | | | | | | | | | | | -- * struct.c (rb_struct_equal, rb_struct_eql): Handle comparison of recursive structures [ruby-core:24759] * range.c (range_eq, range_eql): ditto for ranges -- test for r25010 * test/ruby/test_struct.rb (TestStruct#test_comparison_when_recursive): new test. * test/ruby/test_range.rb (TestRange#test_comparison_when_recursive): new test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r25001 from trunk into ruby_1_9_1.yugui2009-11-271-0/+8
| | | | | | | | -- * marshal.c (r_object0): entry regexp object before its encoding name. [ruby-core:25625] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24544 from trunk into ruby_1_9_1.yugui2009-11-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | | -- \d, \s and \w are now non Unicode class. [ruby-dev:39026] * include/ruby/oniguruma.h (ONIGENC_CTYPE_SPECIAL_MASK): added. (ONIGENC_CTYPE_D): ditto. (ONIGENC_CTYPE_S): ditto. (ONIGENC_CTYPE_W): ditto. * regparse.c: \d, \s and \w are now non Unicode class. [ruby-dev:39026] (fetch_token_in_cc): use ONIGENC_CTYPE_[DSW] for \d/\s/\w. (fetch_token): ditto. (add_ctype_to_cc): add routines for ONIGENC_CTYPE_[DSW]. (parse_exp): ditto. * test/ruby/test_regexp.rb (TestRegexp#test_char_class): add tests for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24761 and r24999 from trunk into ruby_1_9_1.yugui2009-11-272-0/+33
| | | | | | | | | | | -- * compile.c (iseq_compile_each): op_asgn to aref should return rhs. [ruby-core:25387] -- * compile.c (iseq_compile_each), parse.y (stmt, arg): arg_concat() on op_asgn was inversed. [ruby-core:25629] [Bug #2050] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r22308 from trunk into ruby_1_9_1.yugui2009-11-271-0/+11
| | | | | | | | | | | -- * hash.c (rb_hash): always return a fixnum value because a return value of rb_hash may be used as a hash value itself and bignums have no unique VALUE. * test/ruby/test_hash.rb: add a test for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added a test method contributed by James M Lawrence,yugui2009-11-011-0/+30
| | | | | | | | | and merged a modification from r24868. * test/ruby/test_module.rb (TestModule#test_method_added): new test method. Patch by James M. Lawrence. c.f. [ruby-core:25536], r24867 and r24868. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24818 from trunk into ruby_1_9_1, with small modification.yugui2009-10-311-1/+19
| | | | | | | -- * test/ruby/test_require.rb (test_relative): tests for require_relative. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24757 and r24758 from trunk into ruby_1_9_1.yugui2009-10-311-19/+46
| | | | | | | | | | | -- * compile.c (iseq_compile_each): &&= and ||= should return rhs. [ruby-dev:39163] (#1996), [ruby-core:25143] -- * compile.c (iseq_compile_each): &&= and ||= should return rhs. [ruby-dev:39163] (#1996), [ruby-core:25143] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24752 from trunk into ruby_1_9_1.yugui2009-10-311-0/+6
| | | | | | | -- * test/ruby/test_io.rb (test_binmode_after_closed): test for [ruby-core:25363]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24719 from trunk into ruby_1_9_1.yugui2009-10-281-53/+29
| | | | | | | -- * test/ruby/test_argf.rb (assert_src_expected): refactored. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24684 from trunk into ruby_1_9_1.yugui2009-10-281-0/+1
| | | | | | | | | -- * vm_method.c (rb_remove_method_id): exported. * numeric.c (num_sadded): fix for non-ascii method name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24579 and r24581 from trunk into ruby_1_9_1.yugui2009-10-281-0/+83
| | | | | | | | | | | | | | -- * compile.c (NODE_RETURN): fire return event at explicit return. [ruby-dev:38701] -- * test/ruby/test_settracefunc.rb (test_return, test_return2): add two tests for [ruby-dev:38701] and [ruby-core:24463]. -- * parse.y (reduce_nodes_gen): preserve NODE_FL_NEWLINE flag during node reducing. [ruby-core:24463] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24574 from trunk into ruby_1_9_1.yugui2009-10-281-0/+2
| | | | | | | | | | | -- * vm_insnhelper.c (vm_call_cfunc): ensure hook c-return. [Bug #1588] * test/ruby/test_settracefunc.rb (TestSetTraceFunc#test_raise): follow above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24569 from trunk into ruby_1_9_1.yugui2009-10-281-0/+7
| | | | | | | | -- * parse.y (lex_get_str, lex_io_gets, rb_parser_compile_string): must be ascii compatible. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24546 from trunk into ruby_1_9_1.yugui2009-10-251-0/+6
| | | | | | | | | | | -- * regparse.c (add_ctype_to_cc_by_range): fix the first character bigger than sb_out was dropped. * test/ruby/test_regexp.rb (TestRegexp#test_posix_bracket): add tests for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24513,r24514 and r24515 from trunk into ruby_1_9_1.yugui2009-10-252-0/+13
| | | | | | | | | | | | | | | | | | | -- * class.c (rb_define_class_id_under, rb_define_module_id_under): new functions to define a nested class/module with non-ascii name. * struct.c (make_struct): use name with encoding. * struct.c (inspect_struct): ditto. [ruby-core:24849] -- * test/ruby/test_marshal.rb (test_class_nonascii): test for non-ascii name class. -- * class.c (rb_define_module_id_under): fix the name. * class.c (rb_define_module_under): fix for prevvious changes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24509 from trunk into ruby_1_9_1.yugui2009-10-251-0/+13
| | | | | | | | -- * string.c (rb_str_new_frozen): must not change encoding of frozen shared string. [ruby-dev:39068] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_m17n.rb (TestM17N#test_sprintf_s):yugui2009-10-251-0/+3
| | | | | | | added an assertion for [ruby-list:46274]. see also r24506. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24443 from trunk into ruby_1_9_1.yugui2009-10-251-0/+6
| | | | | | | | | -- * marshal.c (w_symbol r_symlink, r_symbol, r_object0): fix for non-ascii symbols. loading such symbols can cause segfaults in older versions. [ruby-core:24788] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24405 from trunk into ruby_1_9_1.yugui2009-08-081-0/+4
| | | | | | | | | | | -- * range.c (range_eql, range_eq): fixed equality to work for subclasses of Range. a patch from Marc-Andre Lafortune. [ruby-core:22190] * test/ruby/test_range.rb: add assertions for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24396 from trunk into ruby_1_9_1.yugui2009-08-081-0/+36
| | | | | | | | | | -- * lib/pp.rb (guard_inspect_key): untrust internal hash to prevent unexpected SecurityError. * test/ruby/test_object.rb: add a test for [ruby-dev:38982]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24321 from trunk into ruby_1_9_1.yugui2009-08-082-0/+14
| | | | | | | | | | | -- * insns.def (defineclass): preserve encoding of class/module names. [ruby-core:24600] * variable.c (rb_set_class_path_string): set class path with a string value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24271 from trunk into ruby_1_9_1.yugui2009-08-081-4/+4
| | | | | | | | | -- * io.c (argf_eof): should not have reached EOF before trying to read. based on a patch by Heesob Park <phasis AT gmail.com> at [ruby-core:24559]. [ruby-core:24557] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24243 from trunk into ruby_1_9_1.yugui2009-08-081-3/+3
| | | | | | | | | | | | | | | | | -- * vm_core.h (struct rb_iseq_t): add a new field line_no. This field represents line number from which the original code of the iseq starts. [ruby-dev:38698] * iseq.c, compile.c: ditto. * parse.y: line number hack (for Proc#source_location) is no longer needed. * test/ruby/test_settracefunc.rb: line number of set_trace_func is now compatible with 1.8's. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24203 from trunk into ruby_1_9_1.yugui2009-07-261-0/+6
| | | | | | | -- * io.c (io_read): should taint the result. [ruby-dev:38826] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24148 from trunk into ruby_1_9_1.yugui2009-07-171-0/+19
| | | | | | | | -- * id.c (Init_id), vm.c (vm_exec): @#__ThrowState__ is no longer used. [ruby-dev:38760] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24016 from trunk into ruby_1_9_1.yugui2009-07-131-0/+7
| | | | | | | -- Add test for marshaling regexp. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r24012 from trunk into ruby_1_9_1.yugui2009-07-131-0/+8
| | | | | | | | -- * vm_insnhelper.c (vm_search_superclass): checks for implicit argument passing before method search. [ruby-core:24244] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23989 from trunk into ruby_1_9_1.yugui2009-07-131-2/+4
| | | | | | | | -- * file.c (rb_file_s_basename): returns new string instead of shared string from FilePathStringValue(). [ruby-core:24199] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23970 from trunk into ruby_1_9_1.yugui2009-07-131-0/+12
| | | | | | | | -- * proc.c (make_curry_proc): should propagate lambda-ness. [ruby-core:24127] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23959 from trunk into ruby_1_9_1.yugui2009-07-131-0/+5
| | | | | | | | -- * thread.c (rb_threadptr_exec_event_hooks): new function to execute event hooks, with preserving errinfo. [ruby-core:24118] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23956 from trunk into ruby_1_9_1.yugui2009-07-121-0/+26
| | | | | | | | -- * vm_insnhelper.c (vm_yield_setup_block_args): restores the first arg where is overwritten at funcall. [ruby-core:24139] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23946 from trunk into ruby_1_9_1.yugui2009-07-121-2/+4
| | | | | | | | | -- * complex.c: undef-ed shome methods. [ruby-core:24110] * complex.c (Numeric#arg): NaN for NaN. [ruby-core:24116] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23918 and r23919 from trunk into ruby_1_9_1.yugui2009-07-121-0/+1
| | | | | | | | | | | -- * marshal.c (w_encoding): encodings need extra depth. [ruby-core:24100] -- * test/ruby/test_marshal.rb (TestMarshal#test_limit): test for [ruby-core:24100]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23891 from trunk into ruby_1_9_1.yugui2009-07-121-0/+22
| | | | | | | -- * dln.c (dln_find_1): fix for files with dots. [ruby-dev:38588] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23730 from trunk into ruby_1_9_1.yugui2009-06-211-0/+5
| | | | | | | | | | -- * numeric.c (flo_cmp): Infinity is greater than any bignum number. [ruby-dev:38672] * bignum.c (rb_big_cmp): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23718 from trunk into ruby_1_9_1.yugui2009-06-212-0/+14
| | | | | | | | | | -- * complex.c (nucomp_coerce): accepts Complex instances. * rational.c (nurat_coerce): accepts Rational instances. [ruby-core:23859] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges the latter half of r23699 and r23706 from trunk into ruby_1_9_1.yugui2009-06-211-6/+2
| | | | | | | | | | -- * io.c (argf_skip): should close only when current_file is available. -- * test/ruby/test_argf.rb (TestArgf#test_skip): updated test according to clarified behavior. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23642 from trunk into ruby_1_9_1.yugui2009-06-212-7/+7
| | | | | | | -- removed extra spaces. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23616 from trunk into ruby_1_9_1.yugui2009-06-201-0/+5
| | | | | | | | | | -- * cont.c (cont_capture, fiber_store): reraise transferred error. * 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/branches/ruby_1_9_1@23766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23562 and r23564 from trunk into ruby_1_9_1.yugui2009-06-201-0/+4
| | | | | | | | | | -- * string.c (rb_str_partition): should use the converted result. a patch from Marc-Andre Lafortune at [ruby-core:23540]. -- * string.c (rb_str_rpartition): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23557 and r23563 from trunk into ruby_1_9_1.yugui2009-06-202-2/+4
| | | | | | | | | | | | | | | | | -- * thread.c (rb_exec_recursive_paired): new function for proper handling of recursive arrays. [EXPERIMENTAL] [ruby-core:23402] * array.c (rb_ary_equal, rb_ary_eql, rb_ary_cmp): use above. * hash.c (hash_equal): ditto. -- * test/ruby/test_hash.rb (TestHash::test_equal2): recursive hashes 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/branches/ruby_1_9_1@23759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23424 from trunk into ruby_1_9_1.yugui2009-05-211-0/+16
| | | | | | | | -- * ext/stringio/stringio.c (strio_ungetbyte): encoding should not be effective. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23378 from trunk into ruby_1_9_1.yugui2009-05-211-0/+5
| | | | | | | | -- * test/ruby/test_float.rb (TestFloat#test_sleep_with_Float): add a test. see [ruby-core:23282] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23362 from trunk into ruby_1_9_1.yugui2009-05-211-0/+11
| | | | | | | | -- * test/ruby/test_rubyoptions.rb (test_indentation_check): add a test for indentation check. [ruby-dev:38382] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23361 from trunk into ruby_1_9_1.yugui2009-05-211-0/+3
| | | | | | | | -- * array.c (rb_ary_flatten_bang): returns nil if nothing changed. a patch from Marc-Andre Lafortune in [ruby-core:23382]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23359 from trunk into ruby_1_9_1.yugui2009-05-211-0/+2
| | | | | | | | -- * array.c (rb_ary_sample): negative sample number is invalid. [ruby-core:23374] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r23191 from trunk into ruby_1_9_1.yugui2009-05-041-0/+5
| | | | | | | | | | -- * array.c (rb_ary_flatten): flatten(0) works as Array#dup. [ruby-core:23168] * test/ruby/test_array.rb: add a test for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e