ruby-changes:8635
From: knu <ko1@a...>
Date: Mon, 10 Nov 2008 17:38:37 +0900 (JST)
Subject: [ruby-changes:8635] Ruby:r20170 (trunk): * test/sdbm/test_sdbm.rb (TestSDBM#test_index): Reflect the method
knu 2008-11-10 17:38:20 +0900 (Mon, 10 Nov 2008) New Revision: 20170 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20170 Log: * test/sdbm/test_sdbm.rb (TestSDBM#test_index): Reflect the method name change from #index to #key and remove a duplicated test method. Modified files: trunk/ChangeLog trunk/test/sdbm/test_sdbm.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 20169) +++ ChangeLog (revision 20170) @@ -1,3 +1,9 @@ +Mon Nov 10 17:34:50 2008 Akinori MUSHA <knu@i...> + + * 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@r...> * lib/delegate.rb (Delegator.delegating_block): should not refer Index: test/sdbm/test_sdbm.rb =================================================================== --- test/sdbm/test_sdbm.rb (revision 20169) +++ test/sdbm/test_sdbm.rb (revision 20170) @@ -199,9 +199,9 @@ } 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 @@ 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 @@ @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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/