test: updateInput to simulate new ParseInput output
This commit is contained in:
@@ -1,17 +1,19 @@
|
|||||||
package dayseven
|
package dayseven
|
||||||
|
|
||||||
import "testing"
|
import (
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
var testInput = []string{
|
var testInput = map[string]string{
|
||||||
"123 -> x",
|
"x": "123",
|
||||||
"456 -> y",
|
"y": "456",
|
||||||
"x AND y -> d",
|
"d": "x AND y",
|
||||||
"x OR y -> e",
|
"e": "x OR y",
|
||||||
"x LSHIFT 2 -> f",
|
"f": "x LSHIFT 2",
|
||||||
"y RSHIFT 2 -> g",
|
"g": "y RSHIFT 2",
|
||||||
"NOT x -> h",
|
"h": "NOT x",
|
||||||
"NOT y -> i",
|
"i": "NOT y",
|
||||||
"d -> a",
|
"a": "d",
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestPartOne(t *testing.T) {
|
func TestPartOne(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user