aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-08-10 11:39:04 -0400
committerBrian Cully <bjc@kublai.com>2019-08-10 11:39:04 -0400
commitbe7c1fb0a1070298a2db0fa07b6430f4506e5c3d (patch)
treeb33000e373bf26cc7a5c5140ecd0ded275fb05cc
parentc687e62874aba454a204dc527962c2559da88951 (diff)
downloadbootkbd-be7c1fb0a1070298a2db0fa07b6430f4506e5c3d.tar.gz
bootkbd-be7c1fb0a1070298a2db0fa07b6430f4506e5c3d.zip
Test parser returns None result at end of descriptor.
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
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]