diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-10 08:38:20 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-10 08:38:20 +0000 |
commit | fd93c804821a1ae21d7ad32bf97ad79023b57048 (patch) | |
tree | 9e5c2c851b6dd72652e52701a8abec073ec14953 | |
parent | 504abcc00f81aa9f7228a758f6627205fafd69e1 (diff) | |
download | ruby-fd93c804821a1ae21d7ad32bf97ad79023b57048.tar.gz |
* test/sdbm/test_sdbm.rb (TestSDBM#test_index): Reflect the method
name change from #index to #key and remove a duplicated test
method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | test/sdbm/test_sdbm.rb | 12 |
2 files changed, 9 insertions, 9 deletions
@@ -1,3 +1,9 @@ +Mon Nov 10 17:34:50 2008 Akinori MUSHA <knu@iDaemons.org> + + * test/sdbm/test_sdbm.rb (TestSDBM#test_index): Reflect the method + name change from #index to #key and remove a duplicated test + method. + Mon Nov 10 10:50:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * lib/delegate.rb (Delegator.delegating_block): should not refer diff --git a/test/sdbm/test_sdbm.rb b/test/sdbm/test_sdbm.rb index b7e8498300..b94e198e95 100644 --- a/test/sdbm/test_sdbm.rb +++ b/test/sdbm/test_sdbm.rb @@ -199,9 +199,9 @@ class TestSDBM < Test::Unit::TestCase } end - def test_index + def test_key assert_equal('bar', @sdbm['foo'] = 'bar') - assert_equal('foo', @sdbm.index('bar')) + assert_equal('foo', @sdbm.key('bar')) assert_nil(@sdbm['bar']) end @@ -277,7 +277,7 @@ class TestSDBM < Test::Unit::TestCase n = 0 ret = @sdbm.each_value {|val| - assert_not_nil(key = @sdbm.index(val)) + assert_not_nil(key = @sdbm.key(val)) assert_not_nil(i = keys.index(key)) assert_equal(val, values[i]) @@ -530,12 +530,6 @@ class TestSDBM < Test::Unit::TestCase @sdbm = SDBM.new(@path) end - def test_index - assert_equal(nil, @sdbm.index("foo")) - @sdbm["bar"] = "foo" - assert_equal("bar", @sdbm.index("foo")) - end - def test_readonly @sdbm["bar"] = "baz" @sdbm.close |