mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 05:40:32 +01:00
Implement 2024 day 3 part 1 in Terraform
This commit is contained in:
@@ -39,5 +39,21 @@ run "day2" {
|
||||
condition = output.part2 == 4
|
||||
error_message = "Part2 output is wrong"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
run "day3_1" {
|
||||
command = plan
|
||||
|
||||
module {
|
||||
source = "./day03"
|
||||
}
|
||||
|
||||
variables {
|
||||
input = "xmul(2,4)%&mul[3,7]!@^do_not_mul(5,5)+mul(32,64]then(mul(11,8)mul(8,5))"
|
||||
}
|
||||
|
||||
assert {
|
||||
condition = output.part1 == 161
|
||||
error_message = "Part1 output is wrong"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user