diff --git a/jid/src/lib.rs b/jid/src/lib.rs index bf28db5432a1be7550b1506fb5531f1b2f54833f..efecccf50d9fd4686a37166c61547bf5a9aa70ba 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();