diff options
author | Daniel Schadt <kingdread@gmx.de> | 2022-04-20 20:25:34 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2022-04-20 20:25:34 +0200 |
commit | 2f225ba3d27351812307e0a426096738384b7b0d (patch) | |
tree | 1db26a11a7170331d6bf0bc4993ad4567bed403e /tests/analyzers.rs | |
parent | e9b0ebc276e2a68e37922ded080662584ad0f99f (diff) | |
download | evtclib-2f225ba3d27351812307e0a426096738384b7b0d.tar.gz evtclib-2f225ba3d27351812307e0a426096738384b7b0d.tar.bz2 evtclib-2f225ba3d27351812307e0a426096738384b7b0d.zip |
add tests for Mai Trin CM
Diffstat (limited to 'tests/analyzers.rs')
-rw-r--r-- | tests/analyzers.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/analyzers.rs b/tests/analyzers.rs index 838e500..dc876d6 100644 --- a/tests/analyzers.rs +++ b/tests/analyzers.rs @@ -51,3 +51,21 @@ fn test_ai_succeeded() { assert_eq!(analyzer.outcome(), Some(Outcome::Success)); } + +#[test] +fn test_mai_cm_succeeded() { + let log = evtclib::process_file("tests/logs/cms/mai-trin.zevtc", Compression::Zip).unwrap(); + + let analyzer = log.analyzer().expect("No analyzer for Mai Trin"); + + assert_eq!(analyzer.outcome(), Some(Outcome::Success)); +} + +#[test] +fn test_mai_cm_failed() { + let log = evtclib::process_file("tests/logs/cms/mai-trin-failed.zevtc", Compression::Zip).unwrap(); + + let analyzer = log.analyzer().expect("No analyzer for Mai Trin"); + + assert_eq!(analyzer.outcome(), Some(Outcome::Failure)); +} |