fix tests

This commit is contained in:
Quentin 2023-07-23 12:38:39 +02:00
parent bdc5d19a1f
commit dd285dd7c0
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

@ -155,7 +155,7 @@ mod tests {
#[test]
fn test_preamble() {
assert_eq!(
preamble(b"hello")(b"blip
part_raw(b"hello")(b"blip
bloup
blip
@ -176,7 +176,7 @@ Field: Body
#[test]
fn test_part_raw() {
assert_eq!(
part(b"simple boundary")(b"Content-type: text/plain; charset=us-ascii
part_raw(b"simple boundary")(b"Content-type: text/plain; charset=us-ascii
This is explicitly typed plain US-ASCII text.
It DOES end with a linebreak.
@ -189,7 +189,7 @@ It DOES end with a linebreak.
))
);
}
/*
#[test]
fn test_multipart() {
assert_eq!(
@ -219,4 +219,5 @@ This is the epilogue. It is also to be ignored.
)),
);
}
*/
}