diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-05-18 19:01:27 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-06-07 19:14:52 +0900 |
commit | 0d2c3e0a14232d9bf0c7c7e91e1d34ea4c241d6e (patch) | |
tree | e017b0476d57ed0d8d7d67a087c32434aa8efd76 | |
parent | 30594301b8107b6e246edaa4a3331f1f05510008 (diff) | |
download | psych-0d2c3e0a14232d9bf0c7c7e91e1d34ea4c241d6e.zip |
test/psych/test_coder.rb: Suppress non-parenthesis warnings
http://rubyci.s3.amazonaws.com/debian9/ruby-master/log/20210518T093002Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20210518T093002Z/ruby/test/psych/test_coder.rb:277: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
```
-rw-r--r-- | test/psych/test_coder.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/psych/test_coder.rb b/test/psych/test_coder.rb index f6840ab..b2be0a4 100644 --- a/test/psych/test_coder.rb +++ b/test/psych/test_coder.rb @@ -274,7 +274,7 @@ module Psych def test_coder_style_scalar_default foo = Psych.dump 'some scalar' - assert_match /\A--- some scalar\n(?:\.\.\.\n)?\z/, foo + assert_match(/\A--- some scalar\n(?:\.\.\.\n)?\z/, foo) end def test_coder_style_scalar_any @@ -282,7 +282,7 @@ module Psych scalar: 'some scalar', style: Psych::Nodes::Scalar::ANY, tag: nil - assert_match /\A--- some scalar\n(?:\.\.\.\n)?\z/, foo + assert_match(/\A--- some scalar\n(?:\.\.\.\n)?\z/, foo) end def test_coder_style_scalar_plain @@ -290,7 +290,7 @@ module Psych scalar: 'some scalar', style: Psych::Nodes::Scalar::PLAIN, tag: nil - assert_match /\A--- some scalar\n(?:\.\.\.\n)?\z/, foo + assert_match(/\A--- some scalar\n(?:\.\.\.\n)?\z/, foo) end def test_coder_style_scalar_single_quoted |