From 7752fb4205ecf5de2021a7924c213516c8a8d858 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 6 May 2003 06:51:31 +0000 Subject: * object.c (rb_obj_methods): list singleton methods if recur argument is false; list all methods otherwise. * numeric.c (num_step): double epsilon to make "1.1.step(1.5,0.1)" to work. * ext/gdbm/gdbm.c (fgdbm_values_at): new method to replace select(index..). * ext/sdbm/init.c (fsdbm_values_at): ditto. * ext/dbm/dbm.c (fdbm_values_at): ditto. * ext/dbm/dbm.c (DBM::VERSION): defined. * ext/gdbm/testgdbm.rb: replace select with values_at. * ext/sdbm/testsdbm.rb: ditto. * ext/dbm/testdbm.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/sdbm/testsdbm.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/sdbm/testsdbm.rb') diff --git a/ext/sdbm/testsdbm.rb b/ext/sdbm/testsdbm.rb index 550b47a008..3577d3606c 100644 --- a/ext/sdbm/testsdbm.rb +++ b/ext/sdbm/testsdbm.rb @@ -51,7 +51,7 @@ class TestSDBM < RUNIT::TestCase end def test_version - STDERR.print SDBM::VERSION + assert(! SDBM.const_defined?(:VERSION)) end def test_s_new_has_no_block @@ -219,11 +219,11 @@ class TestSDBM < RUNIT::TestCase assert_equals(values.reverse, @sdbm.indexes(*keys.reverse)) end - def test_select + def test_values_at keys = %w(foo bar baz) values = %w(FOO BAR BAZ) @sdbm[keys[0]], @sdbm[keys[1]], @sdbm[keys[2]] = values - assert_equals(values.reverse, @sdbm.select(*keys.reverse)) + assert_equals(values.reverse, @sdbm.values_at(*keys.reverse)) end def test_select_with_block -- cgit v1.2.3