Skip to content

Commit

Permalink
Merge branch 'fix/tests'
Browse files Browse the repository at this point in the history
* fix/tests:
  Fix failing tests
  • Loading branch information
Felix Van der Jeugt committed Feb 19, 2019
2 parents 96fb45d + 9322d71 commit a8e8bb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/taxon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ error_chain! {
mod tests {
use super::*;
use rank::Rank;
use strum::IntoEnumIterator;
use fixtures;

#[test]
Expand Down Expand Up @@ -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]));
Expand Down

0 comments on commit a8e8bb7

Please sign in to comment.