Skip to content

Commit

Permalink
Simplify test code
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Dec 1, 2022
1 parent bce5068 commit 4e794a7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/fj-kernel/src/algorithms/approx/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,7 @@ mod tests {
fn approx_line_on_flat_surface() {
let mut services = Services::new();

let surface =
PartialSurface::from_axes(GlobalPath::x_axis(), [0., 0., 1.])
.build(&services.objects)
.insert(&mut services.objects);
let surface = services.objects.surfaces.xz_plane();
let mut curve = PartialCurve {
surface: Some(surface),
..Default::default()
Expand Down Expand Up @@ -297,10 +294,7 @@ mod tests {
fn approx_circle_on_flat_surface() {
let mut services = Services::new();

let surface =
PartialSurface::from_axes(GlobalPath::x_axis(), [0., 0., 1.])
.build(&services.objects)
.insert(&mut services.objects);
let surface = services.objects.surfaces.xz_plane();
let mut curve = PartialCurve {
surface: Some(surface),
..Default::default()
Expand Down

0 comments on commit 4e794a7

Please sign in to comment.