diff options
author | Brian Cully <bjc@kublai.com> | 2019-08-10 11:39:04 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-08-10 11:39:04 -0400 |
commit | be7c1fb0a1070298a2db0fa07b6430f4506e5c3d (patch) | |
tree | b33000e373bf26cc7a5c5140ecd0ded275fb05cc | |
parent | c687e62874aba454a204dc527962c2559da88951 (diff) | |
download | bootkbd-be7c1fb0a1070298a2db0fa07b6430f4506e5c3d.tar.gz bootkbd-be7c1fb0a1070298a2db0fa07b6430f4506e5c3d.zip |
Test parser returns None result at end of descriptor.
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -567,6 +567,8 @@ mod test { } else { panic!("Wrong descriptor type."); } + + assert!(parser.next().is_none(), "Extra descriptors."); } #[test] |