test: updateInput to simulate new ParseInput output

This commit is contained in:
2025-12-01 23:08:22 +01:00
parent 3262d1cbb8
commit b8ab5fae7b

View File

@@ -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) {