summaryrefslogtreecommitdiff
path: root/test/psych
diff options
context:
space:
mode:
authorCharles Oliver Nutter <headius@headius.com>2023-01-18 11:32:47 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-01-31 13:14:05 +0900
commit29133794a3b2aea1e3f3451cd3720176ce75ed1f (patch)
treee5d09a92370dabe4da77a6b19a6909a71a8b7cda /test/psych
parentb0b61623ad890e723726b3213354634fcc5cdb71 (diff)
downloadruby-29133794a3b2aea1e3f3451cd3720176ce75ed1f.tar.gz
[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
Diffstat (limited to 'test/psych')
-rw-r--r--test/psych/test_yaml.rb32
1 files changed, 16 insertions, 16 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: MADF
- *c: AUD
- *d: SYD
- *a: MEL
-
-- *f: DFSF
- *c: USD
- *d: JFK
- *a: MCO
+- *f : DOGMA
+ *c : GBP
+ *d : LAX
+ *a : EDI
+
+- *f : MADF
+ *c : AUD
+ *d : SYD
+ *a : MEL
+
+- *f : DFSF
+ *c : USD
+ *d : JFK
+ *a : MCO
EOY
)