Macro aoc_driver::test [−][src]
test!() { /* proc-macro */ }
Expand description
Runs a test with given input
Usage:
test!(year, day, part, function, test_name, test_input, expected);
eg.
test!(2021, 1, 1, year2020::day1::part1, "simple", "123", "456");
The function
may also be a string literal ie "year2020::day1::part1"
The function should be able to take in a &str
and output something which is displayable
eg.
fn example(input: &str) -> impl std::fmt::Display {
...
}