Skip to content

Commit

Permalink
changed test data
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk committed Nov 27, 2016
1 parent 3dc7c77 commit f0ca043
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions test/key-order.t
Expand Up @@ -3,11 +3,37 @@ use Test::More tests => 1;
use YAML;

local $YAML::KeyOrder = 1;
my $yaml = <<'EOM';

my $yaml = <<'...';
---
def: 1
abc: 2
EOM
z: z
y: y
x: x
w: w
v: v
u: u
t: t
s: s
r: r
q: q
p: p
o: o
n: n
m: m
l: l
k: k
j: j
i: i
h: h
g: g
f: f
e: e
d: d
c: c
b: b
a: a
...

my $data = YAML::Load($yaml);
my $dump = YAML::Dump($data);
cmp_ok($dump, 'eq', $yaml, "Roundtrip with KeyOrder");
Expand Down

0 comments on commit f0ca043

Please sign in to comment.