chore: run cargo fmt

This commit is contained in:
Matej Janezic 2024-12-23 19:38:32 +01:00
parent 000003103e
commit 000003208e
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
4 changed files with 14 additions and 8 deletions

View File

@ -200,10 +200,16 @@ mod tests {
use super::*;
#[test]
fn test_part_one() {
assert_eq!(part_one(&aoc::template::read_file("examples", 15)), Some(10092));
assert_eq!(
part_one(&aoc::template::read_file("examples", 15)),
Some(10092)
);
}
#[test]
fn test_part_two() {
assert_eq!(part_two(&aoc::template::read_file("examples", 15)), Some(9021));
assert_eq!(
part_two(&aoc::template::read_file("examples", 15)),
Some(9021)
);
}
}

View File

@ -91,4 +91,3 @@ pub fn part_two(input: &str) -> Option<String> {
}
aoc::solution!(18);

View File

@ -66,6 +66,9 @@ mod tests {
}
#[test]
fn test_part_two() {
assert_eq!(part_two(&aoc::template::read_file("examples", 19)), Some(16));
assert_eq!(
part_two(&aoc::template::read_file("examples", 19)),
Some(16)
);
}
}

View File

@ -1,9 +1,7 @@
mod grid;
mod direction;
mod grid;
mod point;
pub use grid::Grid;
pub use direction::Direction;
pub use grid::Grid;
pub use point::Point;