mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
{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
This commit is contained in:
parent
658fc3dd26
commit
886e805799
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
# configure option:
|
||||
# --with-dbm-type=COMMA-SEPARATED-NDBM-TYPES
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue