advent-of-code/2020/src/bin/day09.rs

27 lines
519 B
Rust
Raw Normal View History

2020-12-09 08:57:54 +01:00
#![feature(test)]
extern crate test;
use std::env;
fn read_input() -> String {
std::fs::read_to_string(env::args().nth(1).filter(|n| n != "--bench").unwrap_or(String::from("inputs/day09"))).unwrap()
}
fn parse_input(raw: &str) -> Vec<!> {
unimplemented!()
}
fn main() {
let input = parse_input(&read_input());
println!("Part 1: {}", part1(&input));
println!("Part 2: {}", part2(&input));
}
#[cfg(test)]
mod tests {
use super::*;
use test::black_box;
const TEST_INPUT: &str = "";
}