aboutsummaryrefslogtreecommitdiff
path: root/tests/analyzers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/analyzers.rs')
-rw-r--r--tests/analyzers.rs18
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));
+}