1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Make the test pass with the old libyaml

I have no idea what result is right, but it fails with libyaml 0.1.7
(bundled with Ubuntu 18.04) anyway.
This commit is contained in:
Yusuke Endoh 2021-05-17 14:22:42 +09:00
parent f367b4ffe7
commit 31a757a442

View file

@ -274,7 +274,7 @@ module Psych
def test_coder_style_scalar_default
foo = Psych.dump 'some scalar'
assert_equal "--- some scalar\n", 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_equal "--- some scalar\n", 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_equal "--- some scalar\n", foo
assert_match /\A--- some scalar\n(?:\.\.\.\n)?\z/, foo
end
def test_coder_style_scalar_single_quoted