cargo fmt ftw
This commit is contained in:
parent
3d16f99347
commit
ce7f802a8c
@ -319,8 +319,8 @@ mod tests {
|
|||||||
h.insert(robot::Position { x: 2, y: 3 }, 1);
|
h.insert(robot::Position { x: 2, y: 3 }, 1);
|
||||||
assert!(check_collisions(&r, &h).is_ok());
|
assert!(check_collisions(&r, &h).is_ok());
|
||||||
}
|
}
|
||||||
|
#[test]
|
||||||
fn test_parse() {
|
fn test_parse() {
|
||||||
let conf: String = String::from("5 5\n\n1 1 N\nFLLFRF\n\n3 2 S\nFFLFRRF\n");
|
let conf: String = String::from("5 5\n\n1 1 N\nFLLFRF\n\n3 2 S\nFFLFRRF\n");
|
||||||
let mut robot_pool: Vec<robot::Robot> = Vec::new();
|
let mut robot_pool: Vec<robot::Robot> = Vec::new();
|
||||||
assert!(parse_config(conf, &mut robot_pool).is_ok());
|
assert!(parse_config(conf, &mut robot_pool).is_ok());
|
||||||
|
Loading…
Reference in New Issue
Block a user