summaryrefslogtreecommitdiffstats
path: root/test/ruby
Commit message (Collapse)AuthorAgeFilesLines
* Add Float::INFINITY and Float::NAN.naruse2009-12-291-11/+11
| | | | | | | | | | | | | | | | | | | | * numeric.c (Init_Numeric): Add Float::INFINITY and Float::NAN. [ruby-dev:1657] [ruby-dev:4760] [ruby-list:7023] [ruby-list:46690] [ruby-core:26632] [ruby-talk:41352] [ruby-talk:203333] * include/ruby/defines.h (INFINITY): defined. * include/ruby/defines.h (NAN): defined. * include/ruby/util.h (ruby_div0): removed. * numeric.c (fix_pow): use INFINITY and NAN instead of ruby_div0(1.0). * marshal.c (r_object0): ditto. * bignum.c (big_fdiv): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_marshal.rb: added tests for taintness/untrustness nahi2009-12-281-0/+64
| | | | | | | propagation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2009-12-251-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (iseq_s_disasm): return nil for native methods.nobu2009-12-231-0/+1
| | | | | | | [ruby-core:27226], [Bug#2499] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_thread.rb (test_priority): removed not-guaranteed result.nobu2009-12-231-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2009-12-221-0/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add a test for [ruby-core:27247]naruse2009-12-211-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (check_funcall): reset method_missing_reason beforenobu2009-12-191-0/+10
| | | | | | | | trying the call. based on a patch from Yehuda Katz in [ruby-core:27219]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb: fix a typo in assert message.kazu2009-12-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (invoke_ruby): call to_str for stdin_data toakr2009-12-132-2/+2
| | | | | | | reject non-string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add rdoc and test of Encoding#replicate.naruse2009-12-121-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h, transcode.c, tool/transcode-tblgen.rb: Addedduerst2009-12-101-3/+3
| | | | | | | | | | | | support for new transcoding instruction FUNsio (with Tatsuya Mizuno) * enc/trans/gb18030.trans: Significantly reduced GB18030 conversion table footprint using FUNsio and differences (with Tatsuya Mizuno) * test/ruby/test_transcode.rb: Minor name fix (from Tatsuya Mizuno) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (yield_under): yields self the same as 1.8.shugo2009-12-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_inspect): CHAR_ESC_LEN should be 13.naruse2009-12-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_justify): fixed the case a fill size is anobu2009-12-091-0/+7
| | | | | | | multiple of the length of the padding. [ruby-dev:39856] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2009-12-071-0/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object): reverted r26007. [ruby-dev:39845]nobu2009-12-071-3/+2
| | | | | | | * test/test_delegate.rb (test_marshal): moved from test_marshal.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object): dump instance variables when usingnobu2009-12-051-0/+20
| | | | | | | | | marshal_dump. [ruby-core:24211] * variable.c (rb_ivar_count): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (k_def): adjust the location of method definition to thenobu2009-12-041-3/+4
| | | | | | | line of def. [Bug #2427] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed tests.shugo2009-12-041-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (compile_cpath, iseq_compile_each): revertedshugo2009-12-032-4/+31
| | | | | | | | | | | | | | constant/class variable lookup in instance_eval etc. to the behavior of 1.8. * eval.c (rb_mod_nesting): ditto. * insns.def (putspecialobject, defineclass): ditto. * node.h (NODE_FL_CREF_PUSHED_BY_EVAL): ditto. * vm_core.h (VM_SPECIAL_OBJECT_CONST_BASE): ditto. * vm_eval.c (yield_under, eval_under): ditto. * vm_insnhelper.c (vm_cref_push, vm_get_const_base, vm_get_ev_const, vm_get_cvar_base): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/gb18030-tbl.rb: Fix omission of C1 region in code tableduerst2009-12-031-2/+8
| | | | | | | | | | (from Tatsuya Mizuno) * test/ruby/test_transcode.rb: Added test for converting full range of Unicode codepoints from/to GB18030 (from Tatsuya Mizuno) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): suppress an extra error message afternobu2009-11-301-0/+10
| | | | | | | | numeric literal without digits. based on a patch from ujihisa . in [ruby-dev:39811]. [ruby-dev:39798] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_complex.rb (@unify): fix the detection if mathyugui2009-11-262-2/+4
| | | | | | | | | loaded. This makes test_complex.rb work fine with the previous commit. * test/ruby/test_rational.rb (@unify): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_range.rb (TestRange#test_comparison_when_recursive):yugui2009-11-262-0/+64
| | | | | | | | | test for r25010. * test/ruby/test_struct.rb (TestStruct#test_comparison_when_recursive): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (EnvUtil.invoke_ruby): raise Timeout::Errorakr2009-11-241-1/+1
| | | | | | | instead of flunk. reported by Yusuke Endoh. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/newline.trans (fun_so_universal_newline): generate \nakr2009-11-222-4/+16
| | | | | | | | 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/trunk@25883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (marshal_dump): use normal object as the buffer sonobu2009-11-211-0/+10
| | | | | | | that no hidden object is exposed to ruby-level. [ruby-dev:39744] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (read_all): fix: false negative invalid byte seequencenaruse2009-11-211-0/+6
| | | | | | | on reading from pipes. [ruby-dev:39743] fix: assigin the variable 'pos' as relative value from recent pos. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* move Test::Unit::Assertions#invoke_ruby to EnvUtil.invoke_ruby.akr2009-11-191-54/+53
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test.akr2009-11-181-0/+31
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (enc_set_default_encoding): reset filesytemnaruse2009-11-181-0/+10
| | | | | | | | | | | | | encoding because on resetting default_external because Unix's filesystem encoding depends on default_external. * encoding.c (enc_set_filesystem_encoding): added. * ruby.c (process_options): don't call rb_filesystem_encoding because filesystem encoding is reset when default_external is reset. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* forgot to add test_undef.rb in the previous revision.shugo2009-11-181-0/+37
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_utf8_nth): fixed overrun. [ruby-core:26787]nobu2009-11-171-0/+5
| | | | | | | ?\012 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_m17n.rb: get rid of empty string interpolationsnobu2009-11-171-43/+43
| | | | | | | confusing ruby-mode.el. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_alias): should raise TypeError if klass is nil.shugo2009-11-171-0/+8
| | | | | | | | | 1.instance_eval { alias to_string to_s } causes SEGV before this fix. * test/ruby/test_alias.rb (test_special_const_alias): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* unused argument removed.akr2009-11-171-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/big5.c, enc/trans/big5.trans, enc/trans/big5-uao-tbl.rb,duerst2009-11-171-1/+6
| | | | | | | | test/ruby/test-transcode.rb: Added Encoding 'Big5-UAO' and transcoding for it (from Tatsuya Mizuno) (see Bug #1784) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2009-11-162-84/+152
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_call_method): protected singleton methods ofshugo2009-11-161-0/+24
| | | | | | | | | | an object should not be able to called from other instances of the class of the object. [ruby-core:26761] * vm_eval.c (rb_method_call_status): ditto. * test/ruby/test_module.rb (test_protected_singleton_method): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix previous change.akr2009-11-151-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2009-11-151-1/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2009-11-151-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tests refined.akr2009-11-152-9/+36
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2009-11-152-22/+83
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_comparable.rb (TestComparable#cmp): suppress warnings.nobu2009-11-081-16/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_case.rb: merged r25658 from ruby_1_8.kazu2009-11-051-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Retry on checking signal_received.naruse2009-11-051-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 300 should be enough for testing cyclic byte succ.naruse2009-11-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Decrease counts of tests which spend so long time.naruse2009-11-042-4/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e