diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-09-30 20:22:29 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-09-30 20:22:29 +0900 |
commit | fc66947c61fe20f6f584ab3b1f7a5f10982af87e (patch) | |
tree | a494c8e6728295d15a2429022c1d381494dfcc3a /test/-ext- | |
parent | 945560008ffbb768df3a6e9f0814f2d117993a5e (diff) | |
download | ruby-fc66947c61fe20f6f584ab3b1f7a5f10982af87e.tar.gz |
test/-ext-/string/test_fstring.rb: suppress "possibly useless use of -@"
"in void context" by assigning the result to a dummy variable.
Diffstat (limited to 'test/-ext-')
-rw-r--r-- | test/-ext-/string/test_fstring.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/-ext-/string/test_fstring.rb b/test/-ext-/string/test_fstring.rb index 9a54f6bfcc..71b12e9cce 100644 --- a/test/-ext-/string/test_fstring.rb +++ b/test/-ext-/string/test_fstring.rb @@ -73,7 +73,7 @@ class Test_String_Fstring < Test::Unit::TestCase end def test_shared_string_safety - -('a' * 30).force_encoding(Encoding::ASCII) + _unused = -('a' * 30).force_encoding(Encoding::ASCII) str = ('a' * 30).force_encoding(Encoding::ASCII).taint frozen_str = Bug::String.rb_str_new_frozen(str) assert_fstring(frozen_str) {|s| assert_equal(str, s)} |