Macro aoc_driver::execute_config [−][src]
execute_config!() { /* proc-macro */ }
Expand description
Usage:
execute_config!(config_file, session_file);
eg.
execute_config!("aoc_config.toml", ".session_token.txt");
Runs tests, downloads inputs, and submits answers based off a given TOML
file
The session file must contain only the session token taken from your browser
Challenge headers take the form of: [challenges.{year}-{day}-{part}]
Test headers take the form of: [challenges.{year}-{day}-{part}.tests.{name}]
Example config:
input_dir = "input"
[challenges.2019-1-1]
function = "year2019::day1::part1"
[challenges.2019-1-1.tests.1]
input = "12"
output = "2"
[challenges.2019-1-1.tests.2]
input = "14"
output = "2"
[challenges.2019-1-2]
function = "year2019::day1::part2"
[challenges.2019-1-2.tests.0]
input = "100756"
output = "50346"