mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
jid: Add test for Jid::Full ser/de
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
e9066c353d
commit
8de14336f5
1 changed files with 4 additions and 0 deletions
|
@ -917,6 +917,10 @@ mod tests {
|
||||||
fn jid_ser_de() {
|
fn jid_ser_de() {
|
||||||
let jid: Jid = Jid::new("node@domain").unwrap();
|
let jid: Jid = Jid::new("node@domain").unwrap();
|
||||||
serde_test::assert_tokens(&jid, &[serde_test::Token::Str("node@domain")]);
|
serde_test::assert_tokens(&jid, &[serde_test::Token::Str("node@domain")]);
|
||||||
|
|
||||||
|
let jid: Jid = Jid::new("node@domain/resource").unwrap();
|
||||||
|
serde_test::assert_tokens(&jid, &[serde_test::Token::Str("node@domain/resource")]);
|
||||||
|
|
||||||
let jid: BareJid = BareJid::new("node@domain").unwrap();
|
let jid: BareJid = BareJid::new("node@domain").unwrap();
|
||||||
serde_test::assert_tokens(&jid, &[serde_test::Token::Str("node@domain")]);
|
serde_test::assert_tokens(&jid, &[serde_test::Token::Str("node@domain")]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue