ruby-changes:56262
From: Nobuyoshi <ko1@a...>
Date: Fri, 28 Jun 2019 17:14:27 +0900 (JST)
Subject: [ruby-changes:56262] Nobuyoshi Nakada: 8ec877d183 (trunk): Add parentheses to suppress a warning
https://git.ruby-lang.org/ruby.git/commit/?id=8ec877d183 From 8ec877d18361054d943fdf57f89b68f4e201d2c4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 28 Jun 2019 17:09:18 +0900 Subject: Add parentheses to suppress a warning diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 323c409..8691924 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 https://github.com/ruby/ruby/blob/trunk/test/ripper/test_scanner_events.rb#L973 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/