The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use FindBin '$Bin';
use lib $Bin;
use TestYAMLTests tests => 2;

my $yaml = Dump "foo\0bar";

is $yaml, <<'...', 'Strings with nulls can Dump';
--- "foo\0bar"
...

my $str = Load $yaml;
is $str, "foo\0bar", 'Strings with nulls can Load';