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