diff --git a/xmpp-parsers/src/ibr.rs b/xmpp-parsers/src/ibr.rs
index 31d0e33..e8cabcb 100644
--- a/xmpp-parsers/src/ibr.rs
+++ b/xmpp-parsers/src/ibr.rs
@@ -166,37 +166,7 @@ mod tests {
#[test]
fn test_ex9() {
- let elem: Element = r#"
-
-
- Use the enclosed form to register. If your Jabber client does not
- support Data Forms, visit http://www.shakespeare.lit/contests.php
-
-
- Contest Registration
-
- Please provide the following information
- to sign up for our special contests!
-
-
- jabber:iq:register
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-"#
+ let elem: Element = "Use the enclosed form to register. If your Jabber client does not support Data Forms, visit http://www.shakespeare.lit/contests.phpContest RegistrationPlease provide the following information to sign up for our special contests!jabber:iq:register"
.parse()
.unwrap();
let elem1 = elem.clone();
@@ -211,27 +181,7 @@ mod tests {
#[test]
fn test_ex10() {
- let elem: Element = r#"
-
-
-
- jabber:iq:register
-
-
- Juliet
-
-
- Capulet
-
-
- juliet@capulet.com
-
-
- F
-
-
-
-"#
+ let elem: Element = "jabber:iq:registerJulietCapuletjuliet@capulet.comF"
.parse()
.unwrap();
let elem1 = elem.clone();
diff --git a/xmpp-parsers/src/muc/muc.rs b/xmpp-parsers/src/muc/muc.rs
index ec0954c..ef5186d 100644
--- a/xmpp-parsers/src/muc/muc.rs
+++ b/xmpp-parsers/src/muc/muc.rs
@@ -149,12 +149,10 @@ mod tests {
#[test]
fn test_muc_simple_password() {
- let elem: Element = "
-
- coucou
- "
- .parse()
- .unwrap();
+ let elem: Element =
+ "coucou"
+ .parse()
+ .unwrap();
let elem1 = elem.clone();
let muc = Muc::try_from(elem).unwrap();
assert_eq!(muc.password, Some("coucou".to_owned()));
diff --git a/xmpp-parsers/src/pubsub/event.rs b/xmpp-parsers/src/pubsub/event.rs
index d46b750..bfbca92 100644
--- a/xmpp-parsers/src/pubsub/event.rs
+++ b/xmpp-parsers/src/pubsub/event.rs
@@ -383,16 +383,7 @@ mod tests {
#[test]
fn test_ex221_subscription() {
- let elem: Element = r#"
-
-
-
-"#
+ let elem: Element = ""
.parse()
.unwrap();
let event = PubSubEvent::try_from(elem.clone()).unwrap();
diff --git a/xmpp-parsers/src/roster.rs b/xmpp-parsers/src/roster.rs
index ea33995..fec2586 100644
--- a/xmpp-parsers/src/roster.rs
+++ b/xmpp-parsers/src/roster.rs
@@ -196,14 +196,7 @@ mod tests {
#[test]
fn test_multiple_groups() {
- let elem: Element = r#"
-
-
- A
- B
-
-
-"#
+ let elem: Element = "AB"
.parse()
.unwrap();
let elem1 = elem.clone();