From ce7f802a8cf4a2502c8e094073b8e64f5f3aab10 Mon Sep 17 00:00:00 2001 From: EliasCubz Date: Sat, 7 Nov 2020 20:45:02 +0100 Subject: [PATCH] cargo fmt ftw --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());