diff --git a/jid/src/lib.rs b/jid/src/lib.rs index bf28db54..efecccf5 100644 --- a/jid/src/lib.rs +++ b/jid/src/lib.rs @@ -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();