mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 13:50:32 +01:00
2025 day 2 part 1
This commit is contained in:
31
2025/day02/tests.tftest.hcl
Normal file
31
2025/day02/tests.tftest.hcl
Normal file
@@ -0,0 +1,31 @@
|
||||
run "sample-1" {
|
||||
module {
|
||||
source = "./range"
|
||||
}
|
||||
|
||||
variables {
|
||||
min = 11
|
||||
max = 22
|
||||
}
|
||||
|
||||
assert {
|
||||
condition = output.invalid_sum == 33
|
||||
error_message = "Incorrect result"
|
||||
}
|
||||
}
|
||||
|
||||
run "sample-2" {
|
||||
module {
|
||||
source = "./range"
|
||||
}
|
||||
|
||||
variables {
|
||||
min = 95
|
||||
max = 115
|
||||
}
|
||||
|
||||
assert {
|
||||
condition = output.invalid_sum == 99
|
||||
error_message = "Incorrect result"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user