From 9d27ec7034f9ad07d8a1d74ab30fdc470de4e02d Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 24 Jul 2020 14:11:51 +0200 Subject: add some testing for analyzers --- tests/parsing.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/parsing.rs') diff --git a/tests/parsing.rs b/tests/parsing.rs index 58e890a..324d823 100644 --- a/tests/parsing.rs +++ b/tests/parsing.rs @@ -28,6 +28,11 @@ macro_rules! test { assert_eq!(player.profession(), *profession); assert_eq!(player.elite(), *elite_spec); } + + // We don't want to assert the correct outcome here (yet?), but at least ensure we have + // analyzer's ready that produce some outcome. + assert!(log.analyzer().is_some()); + assert!(log.analyzer().unwrap().outcome().is_some()); } }; } -- cgit v1.2.3