From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

my $struct = q|
if:
and:
and:
key: tester
m: thing
key: testing
m: other
key: test
m: test
then:
abc: 123
|;
my $compiled = YAML::Ordered::Conditional->new->compile($struct, { test => "test", testing => "other", tester => "thing" }, 1);
my $expected = {
"abc" => 123
};
is_deeply($compiled, $expected);
done_testing;