aboutsummaryrefslogtreecommitdiff
path: root/tests/analyzers.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-04-20 20:25:34 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-04-20 20:25:34 +0200
commit2f225ba3d27351812307e0a426096738384b7b0d (patch)
tree1db26a11a7170331d6bf0bc4993ad4567bed403e /tests/analyzers.rs
parente9b0ebc276e2a68e37922ded080662584ad0f99f (diff)
downloadevtclib-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.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));
+}