diff options
author | Yusuke Endoh <[email protected]> | 2021-05-17 14:22:42 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2021-05-17 14:31:34 +0900 |
commit | 31a757a4426f1ac8c479313e01542940386fc2fe (patch) | |
tree | bb792498c20c938a29ddc7837549381847a6d1c3 | |
parent | f367b4ffe739453e87e55f955138b0ce662942b7 (diff) |
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.
-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 1c1445901f..f6840ab518 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_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 |