Skip to content

Instantly share code, notes, and snippets.

@exodist
Created October 2, 2015 05:18
Show Gist options
  • Save exodist/194465ea603080226d9b to your computer and use it in GitHub Desktop.
Save exodist/194465ea603080226d9b to your computer and use it in GitHub Desktop.
use Test::Stream -V1, Compare => '*';
is(
{ a => 'foo', b => 'bar' },
hash {
field a => match qr/fox/;
field b => match qr/box/;
},
"Sample"
);
done_testing;
__END__
test.pl ..
not ok 1 - Sample
1..1
# Failed test 'Sample'
# at test.pl line 9.
# +------+-----------------+----+----------+------+
# | PATH | GOT | OP | CHECK | LNs |
# +------+-----------------+----+----------+------+
# | | HASH(0x2680f30) | | <HASH> | 5, 9 |
# | {a} | foo | =~ | (?^:fox) | 6 |
# | {b} | bar | =~ | (?^:box) | 7 |
# +------+-----------------+----+----------+------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment