diff options
Diffstat (limited to 'tests/analyzers.rs')
-rw-r--r-- | tests/analyzers.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/analyzers.rs b/tests/analyzers.rs index c7ed6bd..838e500 100644 --- a/tests/analyzers.rs +++ b/tests/analyzers.rs @@ -29,3 +29,25 @@ fn test_xera_succeeded() { assert_eq!(analyzer.outcome(), Some(Outcome::Success)); } + +#[test] +fn test_ai_failed() { + let log = evtclib::process_file( + "tests/logs/analyzers/ai-failed-20200922.zevtc", + Compression::Zip, + ) + .unwrap(); + + let analyzer = log.analyzer().expect("No analyzer for Ai!"); + + assert_eq!(analyzer.outcome(), Some(Outcome::Failure)); +} + +#[test] +fn test_ai_succeeded() { + let log = evtclib::process_file("tests/logs/ai-20200922.zevtc", Compression::Zip).unwrap(); + + let analyzer = log.analyzer().expect("No analyzer for Ai!"); + + assert_eq!(analyzer.outcome(), Some(Outcome::Success)); +} |