fix tests
This commit is contained in:
parent
da7df7dfb3
commit
7153b30a43
1 changed files with 10 additions and 10 deletions
|
@ -447,21 +447,21 @@ mod tests {
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
parse_response("* OK IMAP4rev1 Service Ready\r\n"),
|
parse_response("* OK IMAP4rev1 Service Ready\r\n"),
|
||||||
Ok(Response::Data {
|
Ok(Response::Data(ResponseData {
|
||||||
status: Status::Ok,
|
status: Status::Ok,
|
||||||
code: None,
|
code: None,
|
||||||
information: Some("IMAP4rev1 Service Ready".to_owned()),
|
information: Some("IMAP4rev1 Service Ready".to_owned()),
|
||||||
})
|
}))
|
||||||
);
|
);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
parse_response("a001 OK LOGIN completed\r\n"),
|
parse_response("a001 OK LOGIN completed\r\n"),
|
||||||
Ok(Response::Done {
|
Ok(Response::Done(ResponseDone {
|
||||||
tag: "a001".to_owned(),
|
tag: "a001".to_owned(),
|
||||||
status: Status::Ok,
|
status: Status::Ok,
|
||||||
code: None,
|
code: None,
|
||||||
information: Some("LOGIN completed".to_owned()),
|
information: Some("LOGIN completed".to_owned()),
|
||||||
})
|
}))
|
||||||
);
|
);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
@ -487,30 +487,30 @@ mod tests {
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
parse_response("* OK [UNSEEN 17] Message 17 is the first unseen message\r\n"),
|
parse_response("* OK [UNSEEN 17] Message 17 is the first unseen message\r\n"),
|
||||||
Ok(Response::Data {
|
Ok(Response::Data(ResponseData {
|
||||||
status: Status::Ok,
|
status: Status::Ok,
|
||||||
code: Some(ResponseCode::Unseen(17)),
|
code: Some(ResponseCode::Unseen(17)),
|
||||||
information: Some("Message 17 is the first unseen message".to_owned()),
|
information: Some("Message 17 is the first unseen message".to_owned()),
|
||||||
})
|
}))
|
||||||
);
|
);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
parse_response("* OK [UIDVALIDITY 3857529045] UIDs valid\r\n"),
|
parse_response("* OK [UIDVALIDITY 3857529045] UIDs valid\r\n"),
|
||||||
Ok(Response::Data {
|
Ok(Response::Data(ResponseData {
|
||||||
status: Status::Ok,
|
status: Status::Ok,
|
||||||
code: Some(ResponseCode::UidValidity(3857529045)),
|
code: Some(ResponseCode::UidValidity(3857529045)),
|
||||||
information: Some("UIDs valid".to_owned()),
|
information: Some("UIDs valid".to_owned()),
|
||||||
})
|
}))
|
||||||
);
|
);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
parse_response("a002 OK [READ-WRITE] SELECT completed\r\n"),
|
parse_response("a002 OK [READ-WRITE] SELECT completed\r\n"),
|
||||||
Ok(Response::Done {
|
Ok(Response::Done(ResponseDone {
|
||||||
tag: "a002".to_owned(),
|
tag: "a002".to_owned(),
|
||||||
status: Status::Ok,
|
status: Status::Ok,
|
||||||
code: Some(ResponseCode::ReadWrite),
|
code: Some(ResponseCode::ReadWrite),
|
||||||
information: Some("SELECT completed".to_owned()),
|
information: Some("SELECT completed".to_owned()),
|
||||||
})
|
}))
|
||||||
);
|
);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|
Loading…
Reference in a new issue