Expect &Geometry in ValidationCheck method

This commit is contained in:
Hanno Braun 2024-03-18 13:47:34 +01:00
parent 97ac5c1f75
commit 5e2a9776e5
2 changed files with 5 additions and 2 deletions

View File

@ -99,7 +99,10 @@ mod tests {
},
&mut core,
);
AdjacentHalfEdgesNotConnected::check_and_expect_one_error(&invalid);
AdjacentHalfEdgesNotConnected::check_and_expect_one_error(
&invalid,
&core.layers.geometry,
);
Ok(())
}

View File

@ -37,7 +37,7 @@ pub trait ValidationCheck<T>: Sized {
///
/// This method is designed for convenience over flexibility (it is intended
/// for use in unit tests), and thus always uses the default configuration.
fn check_and_expect_one_error(object: &T) -> Self
fn check_and_expect_one_error(object: &T, _: &Geometry) -> Self
where
Self: Display,
{