mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
bebe8d13f8
commit
3840791b7e
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen-string-literal: true
|
||||
|
||||
require "-test-/symbol"
|
||||
|
||||
module Test_Symbol
|
||||
|
|
Loading…
Add table
Reference in a new issue