Skip to content

Commit 9683d5f

Browse files
Alexander Krotovdjc
authored andcommitted
Add IMAP4REV1 test case
Test that "IMAP4rev1" capability is matched case-insensitive See issue #54
1 parent 54273ab commit 9683d5f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

imap-proto/src/parser/rfc3501.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,13 @@ mod tests {
789789
}
790790
);
791791

792+
assert_matches!(
793+
super::capability_data(b"CAPABILITY IMAP4REV1\r\n"),
794+
Ok((_, capabilities)) => {
795+
assert_eq!(capabilities, vec![Capability::Imap4rev1])
796+
}
797+
);
798+
792799
assert_matches!(
793800
super::capability_data(b"CAPABILITY XPIG-LATIN IMAP4rev1 STARTTLS AUTH=GSSAPI\r\n"),
794801
Ok((_, capabilities)) => {

0 commit comments

Comments
 (0)