Implement 2024 day 3 part 2 in Terraform

No one's going to stop me, not even common sense
This commit is contained in:
2024-12-03 19:33:47 +01:00
parent ff2e421437
commit 608f3dc621
4 changed files with 53 additions and 0 deletions

View File

@@ -57,3 +57,20 @@ run "day3_1" {
error_message = "Part1 output is wrong"
}
}
run "day3_2" {
command = plan
module {
source = "./day03"
}
variables {
input = "xmul(2,4)&mul[3,7]!^don't()_mul(5,5)+mul(32,64](mul(11,8)undo()?mul(8,5))"
}
assert {
condition = output.part2 == 48
error_message = "Part2 output is wrong"
}
}