Skip to content

Commit

Permalink
tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Oct 31, 2022
1 parent 32bfb30 commit 01cb64d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/table_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1670,11 +1670,11 @@ mod test {
.unwrap();

match tables.nodes().row(NodeId::from(0)) {
Ok(x) => match x.population {
Some(x) => match x.population {
PopulationId(0) => (),
_ => panic!("expected PopulationId(0)"),
},
Err(_) => panic!("expected Ok(_)"),
None => panic!("expected Some(_)"),
};
}

Expand Down Expand Up @@ -1847,7 +1847,7 @@ mod test_adding_node {
assert!(tables
.populations()
.row(tables.nodes().population(row_id).unwrap())
.is_err());
.is_none());

let row_id = tables
.add_node(0, 0.0, PopulationId::NULL, IndividualId::from(17))
Expand All @@ -1862,7 +1862,7 @@ mod test_adding_node {
assert!(tables
.individuals()
.row(tables.nodes().individual(row_id).unwrap())
.is_err());
.is_none());
}

#[test]
Expand Down

0 comments on commit 01cb64d

Please sign in to comment.