From d4223be8b4bcc26a1822abcff803760e2107deda Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Tue, 18 Oct 2022 09:24:08 +0200 Subject: [PATCH] Improve test --- rust/sea_battle_backend/src/data/boats_layout.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rust/sea_battle_backend/src/data/boats_layout.rs b/rust/sea_battle_backend/src/data/boats_layout.rs index c91ee7b..e76a220 100644 --- a/rust/sea_battle_backend/src/data/boats_layout.rs +++ b/rust/sea_battle_backend/src/data/boats_layout.rs @@ -361,7 +361,7 @@ impl BoatsLayout { mod test { use crate::data::boats_layout::{BoatDirection, BoatPosition, BoatsLayout, Coordinates}; use crate::data::game_map::GameMap; - use crate::data::{BotType, GameRules, PlayConfiguration, PrintableMap}; + use crate::data::*; #[test] fn dist_coordinates_eq() { @@ -488,9 +488,7 @@ mod test { map_height: 5, boats_str: "1,1".to_string(), boats_can_touch: false, - player_continue_on_hit: false, - strike_timeout: None, - bot_type: BotType::Random, + ..Default::default() }; let mut boats = BoatsLayout(vec![