From 4b9cdf4e1cbb87c4f81edef472c586cd321e924e Mon Sep 17 00:00:00 2001 From: Alexander Momchilov Date: Fri, 22 Jul 2022 16:09:38 -0400 Subject: [ruby/psych] Update to squiggly heredocs in the file https://github.com/ruby/psych/commit/42b43de997 --- test/psych/test_hash.rb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'test/psych') diff --git a/test/psych/test_hash.rb b/test/psych/test_hash.rb index e5392dc4d9..88b520ebfc 100644 --- a/test/psych/test_hash.rb +++ b/test/psych/test_hash.rb @@ -102,13 +102,13 @@ module Psych end def test_ref_append - hash = Psych.unsafe_load(<<-eoyml) ---- -foo: &foo - hello: world -bar: - <<: *foo -eoyml + hash = Psych.unsafe_load(<<~eoyml) + --- + foo: &foo + hello: world + bar: + <<: *foo + eoyml assert_equal({"foo"=>{"hello"=>"world"}, "bar"=>{"hello"=>"world"}}, hash) end @@ -157,11 +157,11 @@ eoyml pend "This Ruby implementation doesn't support string deduplication" end - hashes = Psych.load(<<-eoyml) ---- -- unique_identifier: 1 -- unique_identifier: 2 -eoyml + hashes = Psych.load(<<~eoyml) + --- + - unique_identifier: 1 + - unique_identifier: 2 + eoyml assert_same hashes[0].keys.first, hashes[1].keys.first end -- cgit v1.2.1