diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-04 12:14:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-04 12:16:31 +0900 |
commit | da139317a59acb2d79f460bf92331450efa310fe (patch) | |
tree | d48daeef6bf6d41ceb014c17e843b4a5801017b6 /test | |
parent | e25ad5475c235b51395fe14edf212c85fe3e17fe (diff) |
Fix the warning message for dynamic symbol literal in condition
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 8aa169ac0c..bf59ee5379 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1073,7 +1073,7 @@ eom assert_warning(/literal in condition/) do eval('1 if :foo') end - assert_warning(/literal in condition/) do + assert_warning(/symbol literal in condition/) do eval('1 if :"#{"foo".upcase}"') end |