Commit 1362645f authored by Leonora Tindall's avatar Leonora Tindall

Make Message Debug and PartialEq

parent 08fe1c42
Pipeline #455 passed with stages
in 6 minutes and 4 seconds
......@@ -83,7 +83,7 @@ pub enum Recipient {
/// This type is both returned by `listen`, `poll`, as well as
/// specific message `queries`
///
#[derive(Clone)]
#[derive(Debug, PartialEq, Clone)]
pub struct Message {
/// A unique message ID
pub id: MsgId,
......
......@@ -118,8 +118,7 @@ impl Iterator for MessageGenerator {
#[test]
fn make_receivable_message() {
let message = MessageGenBuilder::new().generate_message();
assert_eq!(1024, message.payload().len());
assert!(message.associator().is_none());
assert_eq!(1024, message.payload.len());
}
#[test]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment