From be7c1fb0a1070298a2db0fa07b6430f4506e5c3d Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sat, 10 Aug 2019 11:39:04 -0400 Subject: Test parser returns None result at end of descriptor. --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index eab430d..b9f17e4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -567,6 +567,8 @@ mod test { } else { panic!("Wrong descriptor type."); } + + assert!(parser.next().is_none(), "Extra descriptors."); } #[test] -- cgit v1.2.3