summaryrefslogtreecommitdiffstats
path: root/test/ruby
Commit message (Collapse)AuthorAgeFilesLines
...
* * test/ruby/test_rubyoptions.rb: use character class instead of alternationkazu2008-06-181-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_unicode_escape.rb (test_basic): windows' echo support.usa2008-06-181-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_shebang.rb (test_shebang): on windows path separetor is '\'.usa2008-06-181-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_copy_stream_dst_rbuf): set binmode.usa2008-06-181-1/+2
| | | | | | | * test/ruby/test_io.rb (make_tempfile): set binmode. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_argf.rb: support NO_SAFE_RENAME platforms.usa2008-06-181-11/+25
| | | | | | | * test/ruby/test_argf.rb: now tempfiles are binmode'ed to test tell/pos/etc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_argf.rb (test_binmode): wrong test. fixed.usa2008-06-181-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_thread.rb: add a test.mame2008-06-121-0/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_reopen): clear read buffer.nobu2008-06-111-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_float.rb: add tests. [ruby-dev:35009]kazu2008-06-101-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_dir.rb (TestDir::test_glob): glob file names not sorted.matz2008-06-091-6/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid dead lock on MacOS X.akr2008-06-081-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (hash_i): make Hash#hash order insensitive.akr2008-06-071-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_gc.rb: add tests to achieve over 90% test coverage ofmame2008-06-053-0/+50
| | | | | | | | | | | gc.c. * test/ruby/test_objectspace.rb: ditto. * test/ruby/test_marshal.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_transcode.rb: add tests for iso-2022-jp.mame2008-06-041-0/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb: add tests.mame2008-06-041-0/+141
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_dir.rb: add tests to achieve over 90% test coveragemame2008-06-033-0/+209
| | | | | | | | | | | | of dir.c. * test/ruby/test_encoding.rb: add tests for dummy?, name_list and aliases. * test/ruby/test_marshal.rb: add some tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (enumerator_with_memo): New method: with_memo().knu2008-06-031-0/+19
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_method.rb: add a test.mame2008-06-021-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/iso_8859_5.c: Large omicron should lowercase to small omicron.mame2008-06-0214-2/+684
| | | | | | | | | | | | | | | * test/ruby/test_big5.rb, test/ruby/test_cp949.rb, test/ruby/test_euc_jp.rb, test/ruby/test_euc_kr.rb, test/ruby/test_euc_tw.rb, test/ruby/test_gb18030.rb, test/ruby/test_gbk.rb, test/ruby/test_iso_8859.rb, test/ruby/test_koi8.rb, test/ruby/test_shift_jis.rb, test/ruby/test_windows_1251.rb: new tests for encoding. * test/ruby/test_utf16.rb, test/ruby/test_utf32.rb, test/ruby/test_regexp.rb: add tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb: add tests for uninitialized object.mame2008-06-023-0/+14
| | | | | | | | | * test/ruby/test_class.rb: ditto. * test/ruby/test_thread.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c: fix SEGV by Regexp.allocate.names, Match.allocate.names, etc.mame2008-06-022-0/+45
| | | | | | | | | | | * test/ruby/test_regexp.rb: add tests for above. * io.c: fix SEGV by IO.allocate.print, etc. * test/ruby/test_io.rb: add tests for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_argf.rb (teardown): remove renamed temporary files.akr2008-06-021-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (assert_normal_exit): show coredump status.akr2008-06-011-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* debug print removed.akr2008-06-011-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (count_objects): clear given hash.akr2008-05-311-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_regexp.rb: add tests.mame2008-05-311-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (assert_normal_exit): show pid when fail.akr2008-05-311-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION.kazu2008-05-301-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_regexp.rb: add tests.mame2008-05-301-10/+45
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_signal.rb: add tests to achieve over 80% testmame2008-05-301-0/+99
| | | | | | | coverage of signal.c. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_argf.rb: rename a conflicting method name.mame2008-05-303-3/+3
| | | | | | | | | * test/ruby/test_string.rb: ditto. * test/ruby/test_io.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_count, count_all_i, Init_Enumerable),knu2008-05-292-0/+2
| | | | | | | | array.c (rb_ary_count): If no argument or block is given, count the number of all elements. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_regexp.rb: add tests.mame2008-05-291-0/+26
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_require.rb: add a test for load with wrap flag, tomame2008-05-291-0/+20
| | | | | | | achieve 100% test coverage of eval_jump.c. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_argf.rb: new tests for ARGF, to achieve over 85% testmame2008-05-292-0/+1360
| | | | | | | | | coverage of file.c. * test/ruby/test_io.rb: add tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_nitems, Init_Array): Axe Array#nitems().knu2008-05-281-12/+0
| | | | | | | cf. [ruby-dev:34676]-[ruby-dev:34713] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_div): should raise ZeroDivisionError.matz2008-05-271-3/+3
| | | | | | | | | * numeric.c (fix_divide): ditto. * test/ruby/test_numeric.rb (TestNumeric::test_divmod): avoid ZeroDivisionError in tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (assert_normal_exit): signal descriptionakr2008-05-251-2/+4
| | | | | | | refined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_modules.rb (remove_json_mixins): change judgmentmame2008-05-241-1/+1
| | | | | | | condition. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_modules.rb (test_ancestors, test_included_modules):mame2008-05-241-4/+10
| | | | | | | ignore json mixins. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:34828].akr2008-05-241-0/+72
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:34802].akr2008-05-221-0/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (flatten): check if reentered. [ruby-dev:34798]nobu2008-05-221-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (flatten): check if reentered. [ruby-dev:34798]nobu2008-05-221-0/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (assert_normal_exit): capture stdout and stderrakr2008-05-222-4/+34
| | | | | | | of the child process. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_require.rb: new tests for library requiring, tomame2008-05-213-0/+275
| | | | | | | | | | | | achieve over 90% test coverage of dln.c. * test/ruby/test_class.rb: add tests to achieve over 90% test coverage of class.c. * test/ruby/test_module.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file_exhaustive.rb (setup): workaround for Windowsusa2008-05-203-10/+5
| | | | | | | | | | | | | | Vista. * test/ruby/envutil.rb (rubyexec): now Open3.open3 is supported on Windows. * test/ruby/test_process.rb: use ``||'' instead of ``;'' because cmd.exe not support it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb: fix tests for 64bit CPU.mame2008-05-201-6/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_enc_strlen_cr): need to set ENC_CODERANGE_7BIT ifmatz2008-05-201-1/+1
| | | | | | | | | | | | | | | | | search_nonascii() fails. [ruby-dev:34751] * string.c (rb_str_reverse): preserve coderange info if the receiver is 7bit string. * string.c (rb_str_reverse_bang): ditto. * string.c (rb_str_reverse_bang): should have called single_byte_optimizable before rb_str_modify() that clears coderange info. * string.c (tr_trans): handle single bytes more eagerly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c, vm_insnhelper.c: fix cref in instance_evalko12008-05-191-7/+10
| | | | | | | | | | | and cvar_base search protocol. * bootstraptest/test_knownbug.rb, test_eval.rb: move soleved test and add new tests. * test/ruby/test_eval.rb: fix tests for spec. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e