day20, examples work in test
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user