mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
test/psych/test_coder.rb: Suppress non-parenthesis warnings
20210518
T093002Z.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
```
This commit is contained in:
parent
6674dd61fd
commit
837cbea64b
1 changed files with 3 additions and 3 deletions
|
@ -274,7 +274,7 @@ module Psych
|
||||||
|
|
||||||
def test_coder_style_scalar_default
|
def test_coder_style_scalar_default
|
||||||
foo = Psych.dump 'some scalar'
|
foo = Psych.dump 'some scalar'
|
||||||
assert_match /\A--- some scalar\n(?:\.\.\.\n)?\z/, foo
|
assert_match(/\A--- some scalar\n(?:\.\.\.\n)?\z/, foo)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_coder_style_scalar_any
|
def test_coder_style_scalar_any
|
||||||
|
@ -282,7 +282,7 @@ module Psych
|
||||||
scalar: 'some scalar',
|
scalar: 'some scalar',
|
||||||
style: Psych::Nodes::Scalar::ANY,
|
style: Psych::Nodes::Scalar::ANY,
|
||||||
tag: nil
|
tag: nil
|
||||||
assert_match /\A--- some scalar\n(?:\.\.\.\n)?\z/, foo
|
assert_match(/\A--- some scalar\n(?:\.\.\.\n)?\z/, foo)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_coder_style_scalar_plain
|
def test_coder_style_scalar_plain
|
||||||
|
@ -290,7 +290,7 @@ module Psych
|
||||||
scalar: 'some scalar',
|
scalar: 'some scalar',
|
||||||
style: Psych::Nodes::Scalar::PLAIN,
|
style: Psych::Nodes::Scalar::PLAIN,
|
||||||
tag: nil
|
tag: nil
|
||||||
assert_match /\A--- some scalar\n(?:\.\.\.\n)?\z/, foo
|
assert_match(/\A--- some scalar\n(?:\.\.\.\n)?\z/, foo)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_coder_style_scalar_single_quoted
|
def test_coder_style_scalar_single_quoted
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue