diff --git a/src/constants.rs b/src/constants.rs index 49c1203..c79e214 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -2,4 +2,4 @@ pub const MOVEMENT_THRESHOLD: f32 = 0.01; pub const WALL_OVERLAP_MODIFIER: f32 = 1.25; pub const FLOOR_Y_OFFSET: u8 = 200; pub const MOVEMENT_COOLDOWN: f32 = 1.0; // one second cooldown -pub const TITLE: &'static str = "Maze Ascension: The Labyrinth of Echoes"; +pub const TITLE: &str = "Maze Ascension: The Labyrinth of Echoes"; diff --git a/src/maze/components.rs b/src/maze/components.rs index c3731d2..0e3d2d2 100644 --- a/src/maze/components.rs +++ b/src/maze/components.rs @@ -156,11 +156,10 @@ mod tests { fn maze_config_default(#[case] iterations: u32) { for _ in 0..iterations { let config = MazeConfig::default(); + let radius = config.radius; - assert_eq!(config.radius, 8); - assert_eq!(config.layout.orientation, HexOrientation::Flat); - assert!(is_within_radius(config.start_pos, 8)); - assert!(is_within_radius(config.end_pos, 8)); + assert!(is_within_radius(config.start_pos, radius)); + assert!(is_within_radius(config.end_pos, radius)); assert_ne!(config.start_pos, config.end_pos); } }