X-Git-Url: http://git.shiar.nl/wormy.git/blobdiff_plain/3f547138025ead9303d443e1d41e5e4c884c570d..42fa759f7b4b8b71be1048e7da1870da7db17890:/t/parser.t diff --git a/t/parser.t b/t/parser.t index cebd099..5e53315 100644 --- a/t/parser.t +++ b/t/parser.t @@ -6,7 +6,7 @@ use warnings; use Test::More; use Data::Dumper; -plan tests => 5; +plan tests => 6; use_ok('Parse::Binary::Nested'); @@ -31,3 +31,11 @@ is_deeply( 'length string' ); +is_deeply( + Parse::Binary::Nested->new( + [ ignoreme => 'x2X', value => 'xC' ] + )->unpackf("\0\1\2"), + { value => 2 }, + 'empty values' +); +