From 30cea657676db0ba703ae769fed4eafd5abc27fc Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 29 Mar 2012 07:36:12 +0000 Subject: * st.c (st_update): add existing parameter to the callback function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/-ext-/st/test_update.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/-ext-') diff --git a/test/-ext-/st/test_update.rb b/test/-ext-/st/test_update.rb index 68fee0b751..68625af428 100644 --- a/test/-ext-/st/test_update.rb +++ b/test/-ext-/st/test_update.rb @@ -10,9 +10,8 @@ class Bug::StTable end def test_notfound - called = false - assert_equal(false, @tbl.st_update(:c) {called = true}) - assert_equal(false, called) + assert_equal(false, @tbl.st_update(:c) {42}) + assert_equal({a: 1, b: 2, c: 42}, @tbl) end def test_continue -- cgit v1.2.3