File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1240,7 +1240,7 @@ mod test {
12401240 assert_eq ! ( md. y, 666 ) ;
12411241
12421242 for row in tables. mutations ( ) . iter ( ) {
1243- assert ! ( ! row. metadata. is_none ( ) ) ;
1243+ assert ! ( row. metadata. is_some ( ) ) ;
12441244 let md = F :: decode ( & row. metadata . unwrap ( ) ) . unwrap ( ) ;
12451245 assert_eq ! ( md. x, -3 ) ;
12461246 assert_eq ! ( md. y, 666 ) ;
@@ -1458,10 +1458,10 @@ mod test_adding_node {
14581458 // We are playing a dangerous game here,
14591459 // in that we do not have any populations.
14601460 // Fortunately, we are range-checked everywhere.
1461- assert ! ( ! tables
1461+ assert ! ( tables
14621462 . populations( )
14631463 . row( tables. nodes( ) . population( row_id) . unwrap( ) )
1464- . is_ok ( ) ) ;
1464+ . is_err ( ) ) ;
14651465
14661466 let row_id = tables
14671467 . add_node ( 0 , 0.0 , PopulationId :: NULL , IndividualId :: from ( 17 ) )
@@ -1473,10 +1473,10 @@ mod test_adding_node {
14731473 ) ;
14741474 assert_eq ! ( tables. nodes( ) . individual( row_id) . unwrap( ) , IndividualId ( 17 ) ) ;
14751475
1476- assert ! ( ! tables
1476+ assert ! ( tables
14771477 . individuals( )
14781478 . row( tables. nodes( ) . individual( row_id) . unwrap( ) )
1479- . is_ok ( ) ) ;
1479+ . is_err ( ) ) ;
14801480 }
14811481
14821482 #[ test]
You can’t perform that action at this time.
0 commit comments