https://github.com/deciduously/aoc2019
Advent of Code 2019 in Rust
https://github.com/deciduously/aoc2019
Last synced: 10 months ago
JSON representation
Advent of Code 2019 in Rust
- Host: GitHub
- URL: https://github.com/deciduously/aoc2019
- Owner: deciduously
- License: mit
- Created: 2019-12-13T02:22:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-27T16:03:39.000Z (over 6 years ago)
- Last Synced: 2025-08-14T17:51:42.266Z (10 months ago)
- Language: Rust
- Size: 89.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code 2019
[Advent of Code 2019](https://adventofcode.com/2019) in Rust.
Usage `./aoc [DAY]`:
```txt
$ cargo run -- 2
Compiling aoc2019 v0.1.0 (/home/ben/code/aoc2019)
Finished dev [unoptimized + debuginfo] target(s) in 0.17s
Running `target/debug/aoc 2`
Day 2
4945026
5296
```
Or `cargo test` which includes all solved days against verified answers:
```txt
$ cargo test
Compiling aoc2019 v0.1.0 (/home/ben/code/aoc2019)
Finished dev [unoptimized + debuginfo] target(s) in 0.31s
Running target/debug/deps/aoc2019-b5d3009c37ed6d9d\
running 6 tests
test day1::test::test_sum_dividends ... ok
test day1::test::test_sum_fuels ... ok
test day1::test::test_solutions ... ok
test intcode::test::test_intcode ... ok
test test::test_get_puzzle_string ... ok
test day2::test::test_solutions ... ok
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
```