1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Get rid of error with frozen string literal

[Bug #14194]
This commit is contained in:
Nobuyoshi Nakada 2019-06-23 07:56:43 +09:00
parent bebe8d13f8
commit 3840791b7e
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
2 changed files with 3 additions and 1 deletions

View file

@ -58,7 +58,7 @@ class Test_String_Fstring < Test::Unit::TestCase
end
def test_singleton_class
str = noninterned_name.force_encoding("us-ascii")
str = noninterned_name
fstr = Bug::String.fstring(str)
assert_raise(TypeError) {fstr.singleton_class}
end

View file

@ -1,3 +1,5 @@
# frozen-string-literal: true
require "-test-/symbol"
module Test_Symbol