Improve test

This commit is contained in:
Pierre HUBERT 2022-10-18 09:24:08 +02:00
parent 83d0780954
commit d4223be8b4

View File

@ -361,7 +361,7 @@ impl BoatsLayout {
mod test { mod test {
use crate::data::boats_layout::{BoatDirection, BoatPosition, BoatsLayout, Coordinates}; use crate::data::boats_layout::{BoatDirection, BoatPosition, BoatsLayout, Coordinates};
use crate::data::game_map::GameMap; use crate::data::game_map::GameMap;
use crate::data::{BotType, GameRules, PlayConfiguration, PrintableMap}; use crate::data::*;
#[test] #[test]
fn dist_coordinates_eq() { fn dist_coordinates_eq() {
@ -488,9 +488,7 @@ mod test {
map_height: 5, map_height: 5,
boats_str: "1,1".to_string(), boats_str: "1,1".to_string(),
boats_can_touch: false, boats_can_touch: false,
player_continue_on_hit: false, ..Default::default()
strike_timeout: None,
bot_type: BotType::Random,
}; };
let mut boats = BoatsLayout(vec![ let mut boats = BoatsLayout(vec![