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 | |
parent | e9b0ebc276e2a68e37922ded080662584ad0f99f (diff) | |
download | evtclib-2f225ba3d27351812307e0a426096738384b7b0d.tar.gz evtclib-2f225ba3d27351812307e0a426096738384b7b0d.tar.bz2 evtclib-2f225ba3d27351812307e0a426096738384b7b0d.zip |
add tests for Mai Trin CM
-rw-r--r-- | tests/analyzers.rs | 18 | ||||
-rw-r--r-- | tests/challenge_motes.rs | 2 | ||||
-rw-r--r-- | tests/logs/cms/mai-trin-failed.zevtc | bin | 0 -> 1148364 bytes | |||
-rw-r--r-- | tests/logs/cms/mai-trin.zevtc | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000..a5fff5c --- /dev/null +++ b/tests/logs/cms/mai-trin-failed.zevtc diff --git a/tests/logs/cms/mai-trin.zevtc b/tests/logs/cms/mai-trin.zevtc Binary files differnew file mode 100644 index 0000000..d3492d1 --- /dev/null +++ b/tests/logs/cms/mai-trin.zevtc |