summaryrefslogtreecommitdiff
path: root/test/-ext-
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-07 23:26:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-08 00:59:45 +0900
commit1910bd42477f928b539f09c7ba2ac444bd368fd4 (patch)
treec9cbdb2141963071ab7feb080428da14869aab9a /test/-ext-
parent9877f3ada8019f559dc0f86911ef4bbddddb5677 (diff)
String for string literal is not resizable
Diffstat (limited to 'test/-ext-')
-rw-r--r--test/-ext-/string/test_fstring.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/-ext-/string/test_fstring.rb b/test/-ext-/string/test_fstring.rb
index 5a3456c566..b7416ccbf3 100644
--- a/test/-ext-/string/test_fstring.rb
+++ b/test/-ext-/string/test_fstring.rb
@@ -49,6 +49,10 @@ class Test_String_Fstring < Test::Unit::TestCase
assert_raise(TypeError) {fstr.singleton_class}
end
+ def test_fake_str
+ assert_equal([*"a".."z"].join(""), Bug::String.fstring_fake_str)
+ end
+
class S < String
end