Skip to content

Commit

Permalink
Add missing test for new error variant
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Feb 22, 2023
1 parent 4edf73a commit 1daedfb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/parse_format_description.rs
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,12 @@ fn error_display() {
.to_string(),
"optional item is not supported in runtime-parsed format descriptions at byte index 0"
);
assert_eq!(
format_description::parse("[ignore]")
.unwrap_err()
.to_string(),
"missing required modifier `count` for component at byte index 1"
);
}

#[test]
Expand Down

0 comments on commit 1daedfb

Please sign in to comment.