mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02: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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue