diff --git a/src/main.rs b/src/main.rs index 5c9fb33..c1bba05 100644 --- a/src/main.rs +++ b/src/main.rs @@ -319,8 +319,8 @@ mod tests { h.insert(robot::Position { x: 2, y: 3 }, 1); assert!(check_collisions(&r, &h).is_ok()); } - - fn test_parse() { + #[test] + fn test_parse() { let conf: String = String::from("5 5\n\n1 1 N\nFLLFRF\n\n3 2 S\nFFLFRRF\n"); let mut robot_pool: Vec = Vec::new(); assert!(parse_config(conf, &mut robot_pool).is_ok());