From 29133794a3b2aea1e3f3451cd3720176ce75ed1f Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Wed, 18 Jan 2023 11:32:47 -0600 Subject: [PATCH] [ruby/psych] Update for stricter 1.2 syntax This allows these tests to pass on SnakeYAML Engine -- which is a 1.2-only YAML library -- while still passing on libyaml 1.1. https://github.com/ruby/psych/commit/f44269fc9b --- test/psych/test_yaml.rb | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb index 32dd43b98e..cedec46cc7 100644 --- a/test/psych/test_yaml.rb +++ b/test/psych/test_yaml.rb @@ -223,8 +223,8 @@ EOY &C currency: GBP &D departure: LAX &A arrival: EDI - - { *F: MADF, *C: AUD, *D: SYD, *A: MEL } - - { *F: DFSF, *C: USD, *D: JFK, *A: MCO } + - { *F : MADF, *C : AUD, *D : SYD, *A : MEL } + - { *F : DFSF, *C : USD, *D : JFK, *A : MCO } EOY ) @@ -233,20 +233,20 @@ EOY --- ALIASES: [&f fareref, &c currency, &d departure, &a arrival] FARES: -- *f: DOGMA - *c: GBP - *d: LAX - *a: EDI +- *f : DOGMA + *c : GBP + *d : LAX + *a : EDI -- *f: MADF - *c: AUD - *d: SYD - *a: MEL +- *f : MADF + *c : AUD + *d : SYD + *a : MEL -- *f: DFSF - *c: USD - *d: JFK - *a: MCO +- *f : DFSF + *c : USD + *d : JFK + *a : MCO EOY )