From a59304fc4f5845ae37d50f8c437589ff07402261 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 26 Apr 2023 09:39:23 +0200 Subject: [PATCH] Migrate test away from `CycleBuilder` --- crates/fj-kernel/src/validate/cycle.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/fj-kernel/src/validate/cycle.rs b/crates/fj-kernel/src/validate/cycle.rs index 599df865a..53f502280 100644 --- a/crates/fj-kernel/src/validate/cycle.rs +++ b/crates/fj-kernel/src/validate/cycle.rs @@ -96,7 +96,6 @@ mod tests { use crate::{ assert_contains_err, - builder::CycleBuilder, objects::{Cycle, HalfEdge}, operations::{BuildCycle, BuildHalfEdge, Insert, UpdateCycle}, services::Services, @@ -107,11 +106,8 @@ mod tests { fn half_edges_connected() -> anyhow::Result<()> { let mut services = Services::new(); - let valid = CycleBuilder::polygon( - [[0.0, 0.0], [1.0, 0.0], [1.0, 1.0]], - &mut services, - ) - .build(&mut services); + let valid = + Cycle::polygon([[0.0, 0.0], [1.0, 0.0], [1.0, 1.0]], &mut services); valid.validate_and_return_first_error()?;