Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk committed Jan 28, 2024
1 parent 315988b commit 4214a9d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions t/22.dump-bool.t
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,21 @@ true1: true
EOM
cmp_ok($yaml, 'eq', $exp_json_pp, "perl_experimental dump");
}
SKIP: {
skip "perl version < v5.36", 1 unless $] >= 5.036000;
my $data = {
"true1" => !!1,
"false1" => !!0,
};
my $yppd = YAML::PP->new(boolean => '');
my $yaml = $yppd->dump_string($data);
my $exp_json_pp = <<'EOM';
---
false1: ''
true1: 1
EOM
cmp_ok($yaml, 'eq', $exp_json_pp, "perl_experimental dump");
}

SKIP: {
skip "perl version < v5.36", 3 unless $] >= 5.036000;
Expand Down

0 comments on commit 4214a9d

Please sign in to comment.