ocean
fbf2bcf37d
* test/ruby/test_array.rb (test_misc): added some tests
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-20 01:26:39 +00:00
ocean
011e0a5148
* array.c (rb_ary_fill): tail elements were vanished when the middle
...
part of array was filled. (ie: [0,1,2,3,4].fill(-1,2,1) => [0,1,-1])
* test/ruby/test_array.rb (test_fill): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 07:06:00 +00:00
ocean
49a84b0867
* test/ruby/test_array.rb: add test for find_all. (based on Daniel Berger's patch)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-13 05:24:19 +00:00
michal
7a28fb146f
Add extend testcase for #first, #last, #shift, #unshift, #pop, #push methods.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-16 11:01:15 +00:00
nobu
07a45c21c0
* test/ruby/test_array.rb: use local variables instead of a global
...
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-16 09:20:36 +00:00
nahi
994dfc0ae6
* test/*: should not depend on $KCODE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 13:08:08 +00:00
nobu
44785befea
* lib/optparse.rb (OptionParser#order, #permute, #parse): allow an
...
array as argument.
* test/ruby/test_*.rb: moved invariants to left side in
assert_equal, and use assert_nil, assert_raises and so on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-05 15:15:43 +00:00
nahi
65264eadbd
* test/ruby/test_*.rb: replace 'assert(a == b)' with assert_equal(a, b)'
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-05 11:28:27 +00:00
nahi
aaf5d9c03c
* test/ruby: tests for ruby itself.
...
* test/ruby/test_*.rb: split sample/test.rb into 28 test/unit testcases. some
tests could not be translates... search '!!' mark to see it.
* test/csv/test_csv.rb: should require 'csv', not '../lib/csv'. test runner
should set load path correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-04 16:18:59 +00:00