reorder testing

This commit is contained in:
Quentin 2023-06-18 22:17:55 +02:00
parent 88fc3c54f2
commit 5083abb835
Signed by: quentin
GPG key ID: E9602264D639FF68
2 changed files with 6 additions and 3 deletions

View file

@ -4,5 +4,5 @@ Test enron files:
cd resources/enron
./restore.sh
cd -
(set -euo pipefail; find resources/enron/maildir/ -type f | while read f; do echo $f; ./target/debug/imf_parse < $f; done)
(set -euo pipefail; find resources/enron/maildir/ -type f | while read f; do echo $f; ./target/debug/imf_parse < $f > /dev/null; done)
```

View file

@ -20,8 +20,11 @@ fn main() {
println!("Encoding: {:?}, Malformed: {:?}", encoding, malformed);
let (_, hdrs) = header::section(&email).unwrap();
assert!(hdrs.date.is_some());
assert!(hdrs.from.len() > 0);
println!("{:?}", hdrs);
assert!(hdrs.date.is_some());
assert!(hdrs.from.len() > 0);
assert!(hdrs.bad_fields.len() == 0);
}