1
0

prepare day 6

This commit is contained in:
2024-12-05 19:14:31 +01:00
parent 1a4c40b8aa
commit 8cf59c3725
3 changed files with 37 additions and 0 deletions

35
src/day06.rs Normal file
View File

@@ -0,0 +1,35 @@
use std::fs::read_to_string;
pub fn day_main() {
let input = read_to_string("input/day06.txt").unwrap();
let input = input.trim();
println!(" part1: {}", part1(input));
println!(" part2: {}", part2(input));
}
type RiddleResult = i64;
fn part1(input: &str) -> RiddleResult {
0
}
fn part2(_input: &str) -> RiddleResult {
0
}
#[cfg(test)]
mod test {
use super::{part1, part2};
const TEST_INPUT: &str = r"";
#[test]
fn test1() {
assert_eq!(part1(TEST_INPUT), 0);
}
#[test]
fn test2() {
assert_eq!(part2(TEST_INPUT), 0);
}
}