diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-28 17:09:18 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-28 17:10:18 +0900 |
commit | 8ec877d18361054d943fdf57f89b68f4e201d2c4 (patch) | |
tree | 35050bf8edcef76f1b802c532f47b225802d393a /test/ripper/test_scanner_events.rb | |
parent | 3dba16a5d6195a673537519edb024ef1d29f7715 (diff) | |
download | ruby-8ec877d18361054d943fdf57f89b68f4e201d2c4.tar.gz |
Add parentheses to suppress a warning
Diffstat (limited to 'test/ripper/test_scanner_events.rb')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 323c4098e8..8691924464 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -973,10 +973,10 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase def test_invalid_char err = nil - assert_equal ['a'], scan('ident', "\ea") {|*e| err = e} - assert_equal :compile_error, err[0] - assert_match /Invalid char/, err[1] - assert_equal "\e", err[2] + assert_equal(['a'], scan('ident', "\ea") {|*e| err = e}) + assert_equal(:compile_error, err[0]) + assert_match(/Invalid char/, err[1]) + assert_equal("\e", err[2]) end def test_invalid_hex_escape |