From 76d927f88f9b64cf01912be41d5e88238a9e6ec6 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sun, 15 Sep 2024 09:50:14 +0900 Subject: Prevent prism warnings in syntax exhaustive tests [Bug #20736] --- test/ruby/test_literal.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb index 9b294bc8ea..1fdc6aa853 100644 --- a/test/ruby/test_literal.rb +++ b/test/ruby/test_literal.rb @@ -39,6 +39,8 @@ class TestRubyLiteral < Test::Unit::TestCase end def test_string + verbose_bak, $VERBOSE = $VERBOSE, nil # prevent syntax warnings + assert_instance_of String, ?a assert_equal "a", ?a assert_instance_of String, ?A @@ -94,6 +96,9 @@ class TestRubyLiteral < Test::Unit::TestCase assert_equal "ab", eval("?a 'b'") assert_equal "a\nb", eval("<