From b8ab5fae7bcba902a6f8f309b69d6857d6ffe08f Mon Sep 17 00:00:00 2001 From: Kharec Date: Mon, 1 Dec 2025 23:08:22 +0100 Subject: [PATCH] test: updateInput to simulate new ParseInput output --- internal/2015/DaySeven/code_test.go | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/internal/2015/DaySeven/code_test.go b/internal/2015/DaySeven/code_test.go index 80eeab0..c128a1d 100644 --- a/internal/2015/DaySeven/code_test.go +++ b/internal/2015/DaySeven/code_test.go @@ -1,17 +1,19 @@ package dayseven -import "testing" +import ( + "testing" +) -var testInput = []string{ - "123 -> x", - "456 -> y", - "x AND y -> d", - "x OR y -> e", - "x LSHIFT 2 -> f", - "y RSHIFT 2 -> g", - "NOT x -> h", - "NOT y -> i", - "d -> a", +var testInput = map[string]string{ + "x": "123", + "y": "456", + "d": "x AND y", + "e": "x OR y", + "f": "x LSHIFT 2", + "g": "y RSHIFT 2", + "h": "NOT x", + "i": "NOT y", + "a": "d", } func TestPartOne(t *testing.T) {