Skip to content

Commit

Permalink
Merge pull request #723 from CXWorks/main
Browse files Browse the repository at this point in the history
Add missing test for invalid parse_str
  • Loading branch information
KodrAus authored Dec 11, 2023
2 parents c889107 + 867d143 commit 94ecea8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,14 @@ mod tests {
index: 20,
}))
);

assert_eq!(
Uuid::parse_str("\u{bcf3c}"),
Err(Error(ErrorKind::Char {
character: '\u{bcf3c}',
index: 1
}))
);
}

#[test]
Expand Down

0 comments on commit 94ecea8

Please sign in to comment.