mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-12 03:06:59 +00:00
Expect &Geometry
in ValidationCheck
method
This commit is contained in:
parent
97ac5c1f75
commit
5e2a9776e5
@ -99,7 +99,10 @@ mod tests {
|
|||||||
},
|
},
|
||||||
&mut core,
|
&mut core,
|
||||||
);
|
);
|
||||||
AdjacentHalfEdgesNotConnected::check_and_expect_one_error(&invalid);
|
AdjacentHalfEdgesNotConnected::check_and_expect_one_error(
|
||||||
|
&invalid,
|
||||||
|
&core.layers.geometry,
|
||||||
|
);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ pub trait ValidationCheck<T>: Sized {
|
|||||||
///
|
///
|
||||||
/// This method is designed for convenience over flexibility (it is intended
|
/// This method is designed for convenience over flexibility (it is intended
|
||||||
/// for use in unit tests), and thus always uses the default configuration.
|
/// 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
|
where
|
||||||
Self: Display,
|
Self: Display,
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user