Skip to content

Commit

Permalink
chore: run tests on 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Nov 10, 2023
1 parent 8adb06b commit f612ca9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
year: ['2015', '2016', '2019', '2020', '2021', '2022']
year: ['2015', '2016', '2019', '2020', '2021', '2022', '2023']

steps:
- name: Checkout code
Expand Down
10 changes: 7 additions & 3 deletions rust/2023/src/day_01.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ pub fn input_generator(input: &str) -> Vec<u32> {
/* Part One
*/
// Your puzzle answer was
/* DOCTEST DISABLED
/// ```
/// use advent_of_code_2022::day_01::*;
/// use advent_of_code_2023::day_01::*;
/// let data = include_str!("../input/2022/day1.txt");
/// assert_eq!(solve_part_01(&input_generator(data)), 0);
/// ```
*/
#[aoc(day1, part1)]
pub fn solve_part_01(_input: &Vec<u32>) -> u32 {
0
Expand All @@ -23,11 +25,13 @@ pub fn solve_part_01(_input: &Vec<u32>) -> u32 {
/* Part Two
*/
// Your puzzle answer was
/* DOCTEST DISABLED
/// ```
/// use advent_of_code_2022::day_01::*;
/// use advent_of_code_2023::day_01::*;
/// let data = include_str!("../input/2022/day1.txt");
/// assert_eq!(solve_part_02(&input_generator(data)), 0);
/// ```
*/
#[aoc(day1, part2)]
pub fn solve_part_02(_input: &Vec<u32>) -> u32 {
0
Expand All @@ -39,7 +43,7 @@ mod tests {

#[test]
fn sample_01() {
let data = "test";
let data = "0";

assert_eq!(solve_part_01(&input_generator(data)), 0)
}
Expand Down

0 comments on commit f612ca9

Please sign in to comment.