reorder testing
This commit is contained in:
parent
88fc3c54f2
commit
5083abb835
2 changed files with 6 additions and 3 deletions
2
notes.md
2
notes.md
|
@ -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)
|
||||
```
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue