diff --git a/src/grid/ntv2/mod.rs b/src/grid/ntv2/mod.rs index acffe80..83627f8 100644 --- a/src/grid/ntv2/mod.rs +++ b/src/grid/ntv2/mod.rs @@ -207,7 +207,7 @@ mod tests { .contains(&"5458".to_string())); // Grids with no children do not appear in the lookup table - assert!(ntv2_grid.lookup_table.get("5556").is_none()); + assert!(!ntv2_grid.lookup_table.contains_key("5556")); Ok(()) } diff --git a/src/op/parsed_parameters.rs b/src/op/parsed_parameters.rs index 6e850af..0e67ecf 100644 --- a/src/op/parsed_parameters.rs +++ b/src/op/parsed_parameters.rs @@ -535,12 +535,12 @@ mod tests { // Booleans correctly parsed? assert!( - p.boolean.get("flag").is_some(), + p.boolean.contains("flag"), "`flag` not in registered booleans: {:#?}", p.boolean ); assert!( - p.boolean.get("galf").is_none(), + !p.boolean.contains("galf"), "`galf` not in registered booleans: {:?}", p.boolean );