Skip to content

Commit

Permalink
Make validation test case more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Mar 23, 2023
1 parent d8f3871 commit b339ab7
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions crates/fj-kernel/src/validate/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ impl ShellValidationError {
mod tests {
use crate::{
assert_contains_err,
builder::{CycleBuilder, FaceBuilder},
objects::{GlobalEdge, Shell},
operations::{
BuildShell, Insert, UpdateCycle, UpdateFace, UpdateHalfEdge,
Expand Down Expand Up @@ -244,19 +243,7 @@ mod tests {
[[0., 0., 0.], [1., 0., 0.], [0., 1., 0.], [0., 0., 1.]],
&mut services.objects,
);
let invalid = {
// Shell with single face is not watertight
let face = FaceBuilder::new(services.objects.surfaces.xy_plane())
.with_exterior(CycleBuilder::polygon([
[0., 0.],
[0., 1.],
[1., 1.],
[1., 0.],
]))
.build(&mut services.objects)
.insert(&mut services.objects);
Shell::new([face])
};
let invalid = valid.shell.remove_face(&valid.face_abc);

valid.shell.validate_and_return_first_error()?;
assert_contains_err!(
Expand Down

0 comments on commit b339ab7

Please sign in to comment.