diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-29 07:36:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-29 07:36:12 +0000 |
commit | 30cea657676db0ba703ae769fed4eafd5abc27fc (patch) | |
tree | 0f607ae4ea699393cb7ae9bfdf97cb600c30112c /test/-ext- | |
parent | 95b30b0d07c40a3f7e0f0d8c74b1ae058034c8ad (diff) |
* 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
Diffstat (limited to 'test/-ext-')
-rw-r--r-- | test/-ext-/st/test_update.rb | 5 |
1 files changed, 2 insertions, 3 deletions
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 |