1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-06-11 18:54:03 +02:00

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();