Skip to content

Commit

Permalink
tests for features
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Aug 7, 2024
1 parent 123195e commit c31aa3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/layers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ use tracing::instrument;
use bvh2d::bvh2d::BVH2d;
use glam::{vec2, Vec2};

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};

use crate::{helpers::Vec2Helper, instance::EdgeSide, BoundedPolygon, MeshError, Polygon, Vertex};

/// Layer of a NavMesh
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ impl Mesh {
"{};{};0;0;0;0;0;{}",
self.scenarios.get(),
start.elapsed().as_secs_f32() * 1_000_000.0,
from.distance(to),
from.pos.distance(to.pos),
);
self.scenarios.set(self.scenarios.get() + 1);
}
Expand Down
4 changes: 3 additions & 1 deletion src/stitching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,9 @@ mod tests {
path,
Path {
length: 1.0,
path: vec![vec2(1.5, 0.5)]
path: vec![vec2(1.5, 0.5)],
#[cfg(feature = "detailed-layers")]
path_with_layers: vec![(vec2(1.0, 0.5), 1), (vec2(1.5, 0.5), 1)],
}
)
}
Expand Down

0 comments on commit c31aa3a

Please sign in to comment.