aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/analyzers.rs18
-rw-r--r--tests/challenge_motes.rs2
-rw-r--r--tests/logs/cms/mai-trin-failed.zevtcbin0 -> 1148364 bytes
-rw-r--r--tests/logs/cms/mai-trin.zevtcbin0 -> 2589718 bytes
4 files changed, 20 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));
+}
diff --git a/tests/challenge_motes.rs b/tests/challenge_motes.rs
index 151beda..3d66b55 100644
--- a/tests/challenge_motes.rs
+++ b/tests/challenge_motes.rs
@@ -51,3 +51,5 @@ test!(test_arkk_cm, "logs/arkk-20200427.zevtc");
test!(test_mama_cm, "logs/mama-20200427.zevtc");
test!(test_siax_cm, "logs/siax-20200427.zevtc");
test!(test_ensolyss_cm, "logs/ensolyss-20200427.zevtc");
+
+test!(test_mai_trin_cm, "logs/cms/mai-trin.zevtc");
diff --git a/tests/logs/cms/mai-trin-failed.zevtc b/tests/logs/cms/mai-trin-failed.zevtc
new file mode 100644
index 0000000..a5fff5c
--- /dev/null
+++ b/tests/logs/cms/mai-trin-failed.zevtc
Binary files differ
diff --git a/tests/logs/cms/mai-trin.zevtc b/tests/logs/cms/mai-trin.zevtc
new file mode 100644
index 0000000..d3492d1
--- /dev/null
+++ b/tests/logs/cms/mai-trin.zevtc
Binary files differ