summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * test/ruby/test_enum.rb (test_count): marked as an implementationnobu2009-10-301-8/+10
| | | | | | | specific test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (vm_call0, vm_call_super, rb_f_send, rb_f_public_send):nobu2009-10-301-0/+25
| | | | | | | fixed call_type. [ruby-dev:39581] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_search_method_emtry, rb_method_call_status): splitnobu2009-10-303-2/+26
| | | | | | | | | | | | from rb_call0(). * vm_eval.c (rb_check_funcall): get rid of raising exceptions and hiding further exceptions. [ruby-dev:39584] * vm_eval.c (rb_funcall_no_recursive): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_enum.rb (test_count): test for [ruby-core:24794].nobu2009-10-301-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/enc/test_gb18030.rb (test_left_adjust_char_head):nobu2009-10-291-26/+27
| | | | | | | String#chop no longer raises ArgumentError. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_to_ary): do not use #respond_to? to detectmatz2009-10-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to_ary. Just call. [ruby-core:23738] * eval.c (rb_check_funcall): new function with method existence check. returns Qundef when the method does not exist. * enumerator.c (enumerator_rewind): just call method, using rb_check_funcall(). [ruby-core:23738] * error.c (exc_equal): ditto. * object.c (convert_type): ditto. * error.c (rb_name_err_mesg_new): export function. * eval.c (make_exception): ditto. * io.c (pop_last_hash): return early when the last argument is nil. * io.c (rb_io_puts): treat T_STRING specially for small optimization. * vm_eval.c (raise_method_missing): skip method call if possible using rb_method_basic_definition_p(). * vm_eval.c (method_missing): ditto. * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_debug): test suites changed to ignore exceptions caused by just-call policy. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (get_filesystem_encoding): removed.naruse2009-10-281-0/+2
| | | | | | | | | | | | | | | | | * encoding.c (rb_locale_encindex): added. * encoding.c (rb_filesystem_encindex): added. * encoding.c (rb_filesystem_encindex): add an alias 'filesystem'. [ruby-dev:39574] * encoding.c (enc_find): add rdoc about special aliases. * gem_prelude.rb (Gem.set_home): use Encoding.find('filesystem'). * gem_prelude.rb (Gem.set_paths): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (Init_stringio): added read_nonblock andnobu2009-10-271-0/+40
| | | | | | | write_nonblock aliases. [ruby-dev:39551] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (chopped_length): get rid of unexpected exception.nobu2009-10-271-9/+0
| | | | | | | see [ruby-core:26336]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ripper_filename): add Ripper#filename. [ruby-dev:37856] * ↵kazu2009-10-261-6/+35
| | | | | | test/ripper/test_filter.rb: add more tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_fwrite): adjust stdio file position after direct write onnobu2009-10-261-0/+15
| | | | | | | BSDish platforms. [ruby-core:26300] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (**) adding documentationtenderlove2009-10-251-0/+10
| | | | | | * test/dl/test_handle.rb (test_NEXT) testing the NEXT handle git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_close_enabled_p) testing that handles cantenderlove2009-10-251-0/+17
| | | | | | be enabled and disabled for closure on GC. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (**) adding documentationtenderlove2009-10-251-0/+15
| | | | | | * test/dl/test_handle.rb (**) testing to_i and initialize git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_sym) refactoring rb_secure(2)tenderlove2009-10-251-0/+29
| | | | | | * test/dl/test_handle.rb (**) testing sym behavior git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_sym) removing unnecessary code. Addingtenderlove2009-10-251-0/+25
| | | | | | documentation and tests for current functionality. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e