summaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-18 08:56:51 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-18 08:56:51 +0000
commit01ceb2ee22ecc7a066880f29239e851b2d1398f3 (patch)
tree9a1cbe98ff8ab7e5c8b02b024e46b142e84c2e1b /sample
parent80a71ef0c37cb9852382d4662f470d833c57bcf4 (diff)
downloadruby-01ceb2ee22ecc7a066880f29239e851b2d1398f3.tar.gz
ruby-01ceb2ee22ecc7a066880f29239e851b2d1398f3.tar.xz
ruby-01ceb2ee22ecc7a066880f29239e851b2d1398f3.zip
* sample/test.rb: Hash#indexes -> Hash#select.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/test.rb b/sample/test.rb
index a6ab98ca6..7022b4de9 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -500,7 +500,7 @@ test_ok(begin
test_ok($x.length == 3)
test_ok($x.has_key?(1))
test_ok($x.has_value?(4))
-test_ok($x.indexes(2,3) == [4,6])
+test_ok($x.select(2,3) == [4,6])
test_ok($x == {1=>2, 2=>4, 3=>6})
$z = $y.keys.join(":")