Skip to content

Commit

Permalink
WIP day13
Browse files Browse the repository at this point in the history
  • Loading branch information
qselle committed Dec 18, 2024
1 parent f07051e commit 7e7fc18
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/day13.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
use aoc_runner_derive::{aoc, aoc_generator};

#[aoc_generator(day12)]
pub fn input_generator(input: &str) -> Vec<Vec<char>> {
input.lines().map(|s: &str| s.chars().collect()).collect()
}

#[aoc(day12, part1)]
pub fn part1(_input: &[Vec<char>]) -> usize {
0
}

// #[aoc(day12, part2)]
// pub fn part2(_input: &[Vec<char>]) -> usize {
// 0
// }

#[cfg(test)]
mod tests {
use super::*;

const INPUT: &str = "RRRRIICCFF
RRRRIICCCF
VVRRRCCFFF
VVRCCCJFFF
VVVVCJJCFE
VVIVCCJJEE
VVIIICJJEE
MIIIIIJJEE
MIIISIJEEE
MMMISSJEEE";

#[test]
fn test_part1() {
assert_eq!(1930, part1(&input_generator(INPUT)))
}

// #[test]
// fn test_part2() {
// assert_eq!(65601038650482, part2(&input_generator(INPUT)))
// }
}

0 comments on commit 7e7fc18

Please sign in to comment.