From 9322d715d72b5d5f225e52bd66679b969e78fc75 Mon Sep 17 00:00:00 2001 From: Rien Maertens Date: Mon, 18 Feb 2019 23:34:49 +0100 Subject: [PATCH] Fix failing tests --- src/taxon.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/taxon.rs b/src/taxon.rs index b36c755..37ba0e2 100644 --- a/src/taxon.rs +++ b/src/taxon.rs @@ -388,6 +388,7 @@ error_chain! { mod tests { use super::*; use rank::Rank; + use strum::IntoEnumIterator; use fixtures; #[test] @@ -443,7 +444,7 @@ mod tests { fn test_lineage() { let list = fixtures::taxon_list(); let by_id = fixtures::by_id(); - let lineage = by_id.lineage(185751); + let lineage = by_id.lineage(185751).unwrap(); for rank in Rank::iter() { if rank == Rank::Superkingdom { assert_eq!(lineage[rank].as_ref(), Some(&list[3]));