Add a test for an invalid resource

This one uses unassigned codepoints in Unicode 3.2.
This commit is contained in:
Emmanuel Gil Peyrot 2023-08-05 16:53:22 +02:00
parent 11087d64f7
commit 6ccee76621

View file

@ -880,6 +880,11 @@ mod tests {
assert_eq!(full, equiv);
}
#[test]
fn invalid_stringprep() {
FullJid::from_str("a@b/🎉").unwrap_err();
}
#[test]
fn jid_from_parts() {
let node = NodePart::new("node").unwrap();