Skip to content

Commit

Permalink
fix import test of polygones
Browse files Browse the repository at this point in the history
  • Loading branch information
SadCl0wn committed Feb 26, 2024
1 parent f250636 commit 0360aa5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dessin/src/contrib/polygone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ impl<const N: u32> From<Polygon<N>> for Shape {

#[test]
fn triangle() {
use crate::prelude::{polygons::*, *};
use crate::prelude::*;
use assert_float_eq::*;

let sqrt3_over_2 = 3f32.sqrt() / 2.;

let Shape::Curve(triangle) = Triangle::default().as_shape() else {
let Shape::Curve(triangle) = polygons::Triangle::default().as_shape() else {
panic!("Not a curve");
};

Expand Down Expand Up @@ -112,7 +112,7 @@ fn square() {

#[test]
fn triangle_in_group() {
use crate::prelude::{polygons::*, *};
use crate::prelude::*;
use assert_float_eq::*;
use nalgebra::Transform2;

Expand All @@ -122,7 +122,7 @@ fn triangle_in_group() {
local_transform,
shapes,
..
}) = dessin2!([Triangle()])
}) = dessin2!([polygons::Triangle()])
else {
panic!("Not a group");
};
Expand Down Expand Up @@ -157,7 +157,7 @@ fn bounding_box() {
use std::f32::consts::FRAC_PI_4;

let polys: [(usize, Shape); 4] = [
(3, Triangle::default().into()),
(3, polygons::Triangle::default().into()),
(4, Square::default().into()),
(8, Octogon::default().into()),
(10, Decagon::default().into()),
Expand Down

0 comments on commit 0360aa5

Please sign in to comment.