summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * lib/net/imap.rb (flag_list): untaint strings to intern in the safeshugo2009-11-191-0/+54
| | | | | | | | level 1. * lib/net/imap.rb (max_flag_count=): new methods to set the max number of flags interned to symbols. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25860 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
* * ksvndifftest/date/test_date_parse.rb: use UTF-8 literals.nobu2009-11-171-5/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Adding yaml tests [ruby-core:26732]tenderlove2009-11-167-0/+231
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25804 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
* * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): Fix comparisons [ruby-core:26646]marcandre2009-11-141-3/+14
| | | | | | * test/bigdecimal/test_bigdecimal.rb (class): Fix and improve tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_cptr.rb (**): using ruby_xfree instead of libc's freetenderlove2009-11-132-5/+5
| | | | | | * test/dl/test_func.rb (test_strdod): strtod needs a char ** argument git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_s_to_ptr): when wrapping a pointer it shouldtenderlove2009-11-121-1/+1
| | | | | | | keep a reference to the object it's wrapping * test/dl/test_func.rb use standard test methods git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/cgi/test_cgi_multipart.rb (_read):xibbar2009-11-121-5/+1
| | | | | | performance improvement in windows.[ruby-dev:39650] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb (Tempfile#initialize): option hash may not benobu2009-11-111-3/+17
| | | | | | | given. [ruby-core:26681] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_func.rb (test_strtod): strtod test should not rely ontenderlove2009-11-101-2/+2
| | | | | | memory layout git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/matrix/test_matrix.rb (TestMatrix#test_rank):yugui2009-11-101-0/+98
| | | | | | added a test method for r24969. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25709 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/dl/test_callback.rb (**) adding a callback test filetenderlove2009-11-081-0/+32
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (**) updating documentationtenderlove2009-11-081-0/+9
| | | | | | | * test/dl/test_cfunc.rb (test_ptr=, test_ptr) testing the pointer accessor methods on CFunc git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_inspect): making inspect consistent acrosstenderlove2009-11-071-2/+2
| | | | | | | platforms * test/dl/test_cptr.rb (test_inspect): testing inspect git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (PP::ObjectMixin#pretty_print): use to_s regardless ofakr2009-11-071-1/+0
| | | | | | | instance variables. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (rb_dlcfunc_initialize): cleaning up C macrostenderlove2009-11-061-0/+6
| | | | | | | * ext/dl/cfunc.c (**): adding documentation * test/dl/test_cfunc.rb (test_set_calltype) testing calltype git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_s_malloc, rb_dlptr_initialize): addingtenderlove2009-11-061-0/+16
| | | | | | | | documentation * test/dl/test_cptr.rb (**): testing that malloc works when passed free functions git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_to_str, rb_dlptr_to_s) adding documentationtenderlove2009-11-061-0/+22
| | | | | | | * test/dl/test_cptr.rb (test_to_str, test_to_s) testing the stringification of DL::Ptr git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_inspect, rb_dlptr_plus, rb_dlptr_minus)tenderlove2009-11-061-0/+22
| | | | | | | | documenting +, -, inspect * text/dl/test_cptr.rb (test_minus, test_plus, test_inspect) testing minus, plus, and inspect git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25675 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
* * test/dl/test_cptr.rb (test_to_ptr*): testing DL::CPtr#to_ptrtenderlove2009-11-031-0/+36
| | | | | | | * ext/dl/cptr.c (rb_dlptr_free_set, rb_dlptr_free_get, rb_dlptr_s_to_ptr): adding documentation, fixing indentation git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_eql, rb_dlptr_cmp): DL::CPtr#== and DL::CPtr#<=>tenderlove2009-11-031-0/+16
| | | | | | should not raise an exception when compared to a different object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_upto): make next object before yield its block.naruse2009-11-031-0/+11
| | | | | | | fix: can modify original begin string of String#upto. [ruby-dev:26384] [ruby-dev:39626] #2327 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_ptr, rb_dlptr_ref) adding documentationtenderlove2009-11-011-0/+8
| | | | | | * test/dl/test_cptr.rb (test_ref_ptr) testing CPtr#ref and CPtr#ptr git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_to_value) added documentationtenderlove2009-11-011-0/+6
| | | | | | * test/dl/test_cptr.rb (test_to_value) testing DL::CPtr#to_value git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_size) splitting function to reduce complexitytenderlove2009-11-012-22/+61
| | | | | | | | | | | * ext/dl/cptr.c (rb_dlptr_null_p, rb_dlptr_aref, rb_dlptr_aset) adding documentation * ext/dl/dl.c (rb_dl_free) adding documentation * test/dl/test_cptr.rb (test_null?, test_size, test_size=, test_aref_aset) Improving test coverage * test/dl/test_dl2.rb (test_free_secure) improving test coverage git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_dl2.rb (**) testing malloc and realloctenderlove2009-11-011-0/+47
| | | | | | * ext/dl/dl.c (**) adding documentation git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTPResponse#each_response_header):nahi2009-10-301-0/+40
| | | | | | | | | | accept multiline message header of HTTP response. see #1796. cf. RFC 2616 '4.2 Message Header'. * test/net/http/test_httpresponse.rb: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e