Skip to content

Commit

Permalink
Migrate test away from CycleBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Apr 26, 2023
1 parent 331128b commit a59304f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/fj-kernel/src/validate/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ mod tests {

use crate::{
assert_contains_err,
builder::CycleBuilder,
objects::{Cycle, HalfEdge},
operations::{BuildCycle, BuildHalfEdge, Insert, UpdateCycle},
services::Services,
Expand All @@ -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()?;

Expand Down

0 comments on commit a59304f

Please sign in to comment.