34 lines
579 B
Bash
34 lines
579 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
today=$(date +%d)
|
||
|
aocd > inputs/day$today
|
||
|
|
||
|
echo '#![feature(test)]
|
||
|
extern crate test;
|
||
|
use aoc2022::{boilerplate, common::*};
|
||
|
|
||
|
fn parse_input(raw: &str) -> Parsed {
|
||
|
unimplemented!()
|
||
|
}
|
||
|
|
||
|
fn part1(parsed: &Parsed) -> usize {
|
||
|
unimplemented!()
|
||
|
}
|
||
|
|
||
|
fn part2(parsed: &Parsed) -> usize {
|
||
|
unimplemented!()
|
||
|
}
|
||
|
|
||
|
boilerplate! {
|
||
|
DAY = '$today',
|
||
|
type = Vec<usize>,
|
||
|
TEST_INPUT == "",
|
||
|
tests: {
|
||
|
part1: { TEST_INPUT => 0 },
|
||
|
part2: { TEST_INPUT => 0 },
|
||
|
},
|
||
|
bench1 == 0,
|
||
|
bench2 == 0,
|
||
|
parse: Vec::len => 0,
|
||
|
}' > src/bin/day$today.rs
|