summaryrefslogtreecommitdiff
path: root/test/ruby
AgeCommit message (Collapse)Author
2009-05-26merge revision(s) 22392:22394:shyouhei
* file.c (rb_file_s_extname): fix for spaces before extention. [ruby-dev:38044] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@23585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-09merge revision(s) 21913:shyouhei
* io.c (io_getpartial): fflush after read for updating pos in FILE. not portable, I guess. [ruby-core:21561] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@22838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-19merge revision(s) 20580:shyouhei
* pack.c (pack_pack): fixed length for odd length string. [ruby-dev:37283] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@22446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22merge revision(s) 19078,20097:shyouhei
* gc.c (rb_mark_set): new function to mark keys. * marshal.c (struct dump_arg, struct load_arg): added wrappers to mark data entries. backport from trunk r13527,r13528,r13961,r16533. [ruby-dev:36082] * marshal.c (marshal_load): arg.data is no longer a VALUE but a st_table, and freed in load_ensure. pointed out by pegacorn. [ruby-dev:37008] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@21731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-03merge revision(s) 18262:shyouhei
* win32/win32.c (rb_w32_select): recalc the rest of timeout for each iterations. [ruby-core:18015] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@21290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10merge revision(s) 17842:shyouhei
* include/ruby/ruby.h (POSFIXABLE): use FIXNUM_MAX+1 instead of FIXNUM_MAX to make it possible to convert to double accurately. It assumes FLT_RADIX is 2. fix RubyForge bug #14102. backported from 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@17989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-29merge revision(s) 17617:shyouhei
* time.c (time_timeval): fix rounding negative float. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@17709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08* hash.c (hash_i): make Hash#hash order insensitive.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@17031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-03* enumerator.c (enumerator_init_copy): Take care ofknu
initialize_copy as well as initialize. * test/ruby/test_enumerator.rb: Pull in the test suite for enumerator from trunk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29Merge from ruby_1_8.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-26Merge from ruby_1_8, including r16205.knu
Note that passing a block to a Proc is experimental and partly broken. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-22Merge from ruby_1_8.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-18Merge -r16241:16456 from ruby_1_8.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-22Merge from ruby_1_8.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-20* object.c, NEWS, test/ruby/test_symbol.rb: Revert Symbol#to_procknu
since it does not pass the tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15* test/ruby/test_settracefunc.rb (TestSetTraceFunc#test_event):knu
Fix tests to reflect the following changes: r15833, r15759. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15* eval.c (method_receiver, method_name, method_owner): Newkazu
methods; backported from 1.9. bug#19007 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15* test/ruby/test_symbol.rb (TestSymbol#test_to_proc): add tests.kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-14* array.c (rb_ary_flatten, rb_ary_flatten_bang): Take an optionalknu
argument that determines the level of recursion to flatten; backported from 1.9. * array.c (rb_ary_shuffle_bang, rb_ary_shuffle, rb_ary_choice, rb_ary_cycle, rb_ary_permutation, rb_ary_combination, rb_ary_product, rb_ary_take, rb_ary_take_while, rb_ary_drop, rb_ary_drop_while): New methods: Array#shuffle, #shuffle!, #choice, #cycle, #permutation, #combination, #product, #take, #take_while, #drop, #drop_while; backported from 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-14* enum.c New methods: Enumerable#take, #take_while, #drop andknu
#drop_while; backported from 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-13* object.c (sym_to_proc): new method Symbol#to_proc; backported from 1.9. ↵kazu
bug#19012 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-29* test/ruby/test_bignum.rb (test_too_big_to_s): skips a test using toonobu
large memory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-29* bignum.c (big2str_find_n1): check integer overflow.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20* test/ruby/test_beginendblock.rb (test_begin_and_eval): add test fornobu
http://sourceforge.net/mailarchive/message.php?msg_name=47B2FD16.6040408%40vvvvvv.sakura.ne.jp git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19* test/ruby/test_integer.rb (test_Integer): multiple underscoresnobu
should not be allowed after octal prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19* bignum.c (rb_cstr_to_inum): an underscore succeeding after octalnobu
prefix is allowed. [ruby-core:14139] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-10* array.c (rb_ary_slice_bang): If an invalid negative index (<=knu
-size) is given, do not raise an exception but return nil just like slice() does. * test/ruby/test_array.rb (TestArray::test_slice, TestArray::test_slice!): Pull in test cases from trunk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-05new file.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-15* marshal.c (r_bytes0): check if source has enough data.nobu
[ruby-dev:32054] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-18* sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keepnobu
comment lines first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-15* hash.c (rb_hash_delete_key): delete the entry without calling block.nobu
* hash.c (rb_hash_shift): should consider iter_lev too. * hash.c (delete_if_i): use rb_hash_delete_key() so that the block isn't called twice. [ruby-core:11556] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-16* numeric.c (fix_pow): integer power calculation: 0**n => 0, matz
1**n => 1, -1**n => 1 (n: even) / -1 (n: odd). * test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test suite. pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-05 * numeric.c (int_pow): fix previous nubu's commit.usa
* test/ruby/test_fixnum.rb: new test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10* test/ruby/test_beginendblock.rb (test_should_propagate_signaled):nobu
get rid of invoking shell. [ruby-dev:30942] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-25git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12385 ↵nobu
b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-23* eval.c (ruby_cleanup): exit by SystemExit and SignalException in ENDnobu
block. [ruby-core:10609] * test/ruby/test_beginendblock.rb (test_should_propagate_exit_code): test for exit in END block. [ruby-core:10760] * test/ruby/test_beginendblock.rb (test_should_propagate_signaled): test for signal in END block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-22* test/ruby/test_bignum.rb (test_to_s): add tests for Bignum#to_s.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31* eval.c (rb_iterate): need to PUSH_ITER in proper order.matz
[ruby-core:10125] * test/ruby/test_iterator.rb (TestIterator::test_block_given_within_iterator): add new test. [ruby-core:10125] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-31* eval.c (rb_call0): fixed bug of zsuper with both of opt and rest.usa
fixed: [ruby-list:42928] * test/ruby/test_super.rb: add tests to check above bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16use assert_same instead of assert_equal.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-31* test/ruby/test_process.rb (TestProcess#test_rlimit_nofile):akr
setrlimit may fail with EINVAL. reported by MIYAMUKO Katsuyuki. [ruby-dev:29174] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-18* test/ruby/test_float.rb (TestFloat::test_strtod): update test tomatz
conform strtod change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21use fork to isolate rlimit effect.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15add RLIMIT_NOFILE testakr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15give dummy argument for Process.getrlimit and rescue TypeError.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-01* numeric.c (num_div): use floor rather than rb_Integer().matz
[ruby-dev:28589] * numeric.c (flo_divmod): the first element of Float#divmod should be an integer. [ruby-dev:28589] * test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder. * util.c (ruby_strtod): fixed wrong conversion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-04fix string interpolationakr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-04This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-17* util.c (ruby_strtod): Float("1e") should fail. [ruby-core:7330]ocean
* pack.c (EXTEND32): unpack("l") did not work where sizeof(long) != 4. [ruby-talk:180024] * pack.c (pack_unpack): fixed integer overflow on template "w". [ruby-talk:180126] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e