parse-wormedit: bytes declarable as non-capturing
[wormy.git] / t / parser.t
index cebd099291bd59b2c22e67cfb4bc24968f167e5f..5e53315d69f7fa99977e4a5f59c42df051a2ef61 100644 (file)
@@ -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'
+);
+