day20, examples work in test

This commit is contained in:
efim
2023-12-20 10:15:46 +00:00
parent f538945dff
commit 6c061375ce
2 changed files with 56 additions and 3 deletions

View File

@@ -93,3 +93,13 @@ func TestPropagateButtonPressExample2FourSteps(t *testing.T) {
}
}
func TestExample1TheQuestion(t *testing.T) {
filename := "example1"
modules := ReadModules(filename)
InitStuffs(modules)
low, high := Count10000ButtonPresses(modules)
t.Log("got low and high: ", low, high)
t.Log("response is: ", low * high)
}