git.shiar.nl
/
wormy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parse-wormedit: bytes declarable as non-capturing
[wormy.git]
/
t
/
parser.t
diff --git
a/t/parser.t
b/t/parser.t
index cebd099291bd59b2c22e67cfb4bc24968f167e5f..5e53315d69f7fa99977e4a5f59c42df051a2ef61 100644
(file)
--- a/
t/parser.t
+++ b/
t/parser.t
@@
-6,7
+6,7
@@
use warnings;
use Test::More;
use Data::Dumper;
use Test::More;
use Data::Dumper;
-plan tests =>
5
;
+plan tests =>
6
;
use_ok('Parse::Binary::Nested');
use_ok('Parse::Binary::Nested');
@@
-31,3
+31,11
@@
is_deeply(
'length string'
);
'length string'
);
+is_deeply(
+ Parse::Binary::Nested->new(
+ [ ignoreme => 'x2X', value => 'xC' ]
+ )->unpackf("\0\1\2"),
+ { value => 2 },
+ 'empty values'
+);
+