Add compete details

This commit is contained in:
Daniel Flanagan 2022-12-01 17:27:58 -06:00
parent 8a05a81128
commit 93975465ae
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 12 additions and 2 deletions

View file

@ -5,6 +5,14 @@ really enjoyed the tooling. I intent to do more with Rust this year than
last and aim for good performance (without bending over too far backwards,
anyways...)
## Competing
I compete very lightly. I use [my `at` script][at] like `at 2022-12-02 && ./
fetch_input.sh 2` to fetch input as soon as it's available and I use `watchexec
-e rs 'C; clear; cargo test --bin day2 && cargo run --bin day2'` to run my
file(s) as I edit them.
## Running
First, you will want to fetch your input for the day you want to run. You will
@ -37,3 +45,5 @@ For speeeeeed!
cargo build --release --bin day1
time ./target/release/day1
```
[at]: https://git.lyte.dev/lytedev/dotfiles/src/branch/master/common/bin/at

View file

@ -22,11 +22,11 @@ mod tests {
#[test]
fn test_part1() {
assert_eq!(part1(TEST_INPUT), 0)
assert_eq!(part1(TEST_INPUT), 10000)
}
#[test]
fn test_part2() {
assert_eq!(part2(TEST_INPUT), 0)
assert_eq!(part2(TEST_INPUT), 10000)
}
}