mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 13:50:32 +01:00
Part 2 and actual testing
This commit is contained in:
19
2024/bonus/day01/sample.tftest.hcl
Normal file
19
2024/bonus/day01/sample.tftest.hcl
Normal file
@@ -0,0 +1,19 @@
|
||||
variables {
|
||||
input = file("../../tests/samples/01.txt")
|
||||
}
|
||||
|
||||
run "run" {
|
||||
|
||||
command = plan
|
||||
|
||||
assert {
|
||||
condition = output.part1 == 11
|
||||
error_message = "Part1 output is wrong"
|
||||
}
|
||||
|
||||
assert {
|
||||
condition = output.part2 == 31
|
||||
error_message = "Part2 output is wrong"
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user