mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
44 lines
663 B
HCL
44 lines
663 B
HCL
run "day1" {
|
|
command = plan
|
|
module {
|
|
source = "./day01"
|
|
}
|
|
|
|
variables {
|
|
input = file("../tests/samples/01.txt")
|
|
}
|
|
|
|
assert {
|
|
condition = output.part1 == 11
|
|
error_message = "Part1 output is wrong"
|
|
}
|
|
|
|
assert {
|
|
condition = output.part2 == 31
|
|
error_message = "Part2 output is wrong"
|
|
}
|
|
}
|
|
|
|
run "day2" {
|
|
command = plan
|
|
|
|
module {
|
|
source = "./day02"
|
|
}
|
|
|
|
variables {
|
|
input = file("../tests/samples/02.txt")
|
|
}
|
|
|
|
assert {
|
|
condition = output.part1 == 2
|
|
error_message = "Part1 output is wrong"
|
|
}
|
|
|
|
assert {
|
|
condition = output.part2 == 4
|
|
error_message = "Part2 output is wrong"
|
|
}
|
|
|
|
}
|