From 39c7fd2b0c82ccd640141339970d4f89baa6ccf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 21 Mar 2022 19:44:07 +0100 Subject: [PATCH] parsers/bookmarks2: uncomment 'wrapped' test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- parsers/src/bookmarks2.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/parsers/src/bookmarks2.rs b/parsers/src/bookmarks2.rs index 93764ae..81dfab8 100644 --- a/parsers/src/bookmarks2.rs +++ b/parsers/src/bookmarks2.rs @@ -121,7 +121,7 @@ impl From for Element { #[cfg(test)] mod tests { use super::*; - use crate::pubsub::pubsub::Item as PubSubItem; + use crate::pubsub::{pubsub::Item as PubSubItem, PubSubEvent}; use crate::Element; use std::convert::TryFrom; @@ -172,9 +172,8 @@ mod tests { let payload = item.payload.clone().unwrap(); println!("FOO: payload: {:?}", payload); // let conference = Conference::try_from(payload).unwrap(); - let conference = Conference::try_from(payload); + let conference = Conference::try_from(payload).unwrap(); println!("FOO: conference: {:?}", conference); - /* assert_eq!(conference.autojoin, Autojoin::True); assert_eq!(conference.name, Some(String::from("Test MUC"))); assert_eq!(conference.clone().nick.unwrap(), "Coucou"); @@ -196,6 +195,5 @@ mod tests { assert_eq!(conference.name, Some(String::from("Test MUC"))); assert_eq!(conference.clone().nick.unwrap(), "Coucou"); assert_eq!(conference.clone().password.unwrap(), "secret"); - */ } }