mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Add a test for an invalid resource
This one uses unassigned codepoints in Unicode 3.2.
This commit is contained in:
parent
11087d64f7
commit
6ccee76621
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue