summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlara Modin <klarasmodin@gmail.com>2022-06-20 21:02:50 +0200
committerKlara Modin <klarasmodin@gmail.com>2022-06-20 21:02:50 +0200
commit321852fe671e4e158db82a45d51881937623db9d (patch)
tree369936820386423a54f45e15aa7cc9b796e4e0d1
parent238efcfa08ca9c4f04d73d5de79c796c6eca6f60 (diff)
fix broken test
-rw-r--r--src/tests.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tests.rs b/src/tests.rs
index 2b8b73b..65b9f30 100644
--- a/src/tests.rs
+++ b/src/tests.rs
@@ -75,14 +75,10 @@ mod session {
.nick("testuser")
.finalize();
- let proper = Message {
- prefix: None,
- command: "PRIVMSG".to_string(),
- params: vec!["#testchannel".to_string(), "Hello, #testchannel".to_string()],
- };
+ let proper = ":testuser PRIVMSG #testchannel :Hello, #testchannel\r\n";
let actual = session.create_message("Hello, #testchannel")
- .expect("Got None from session.create_message(...)");
+ .expect("Got None from session.create_message(...)").to_string();
assert_eq!(proper, actual);
}