diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-28 04:36:08 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-28 04:36:08 +0000 |
commit | dfe04fa0cf26f91b92fb4c458ac9ef41d877b09e (patch) | |
tree | 213138690f230920aed944fd169d067072bb650f /test/dbm | |
parent | 811dc6806368fa784a3c63cd687841deb35dcdc2 (diff) | |
download | ruby-dfe04fa0cf26f91b92fb4c458ac9ef41d877b09e.tar.gz |
{ext,test}/dbm: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dbm')
-rw-r--r-- | test/dbm/test_dbm.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb index d6211fcb31..0812b4023f 100644 --- a/test/dbm/test_dbm.rb +++ b/test/dbm/test_dbm.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true require 'test/unit' require 'tmpdir' @@ -405,7 +405,7 @@ if defined? DBM assert_equal('foo', @dbm.delete(key) {|k| k.replace 'called block'; :blockval}) assert_equal(0, @dbm.size) - key = 'no called block' + key = 'no called block'.dup assert_equal(:blockval, @dbm.delete(key) {|k| k.replace 'called block'; :blockval}) assert_equal(0, @dbm.size) end |