generated from janezicmatej/aoc-template
chore: run cargo fmt
This commit is contained in:
parent
000003103e
commit
000003208e
|
@ -200,10 +200,16 @@ mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
#[test]
|
#[test]
|
||||||
fn test_part_one() {
|
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]
|
#[test]
|
||||||
fn test_part_two() {
|
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)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,4 +91,3 @@ pub fn part_two(input: &str) -> Option<String> {
|
||||||
}
|
}
|
||||||
|
|
||||||
aoc::solution!(18);
|
aoc::solution!(18);
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,9 @@ mod tests {
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
fn test_part_two() {
|
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)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
mod grid;
|
|
||||||
mod direction;
|
mod direction;
|
||||||
|
mod grid;
|
||||||
mod point;
|
mod point;
|
||||||
|
|
||||||
pub use grid::Grid;
|
|
||||||
pub use direction::Direction;
|
pub use direction::Direction;
|
||||||
|
pub use grid::Grid;
|
||||||
pub use point::Point;
|
pub use point::Point;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue