From 6035989da4d399fb8382ae4fe5b81b9698eb3853 Mon Sep 17 00:00:00 2001 From: Kharec Date: Mon, 8 Dec 2025 22:26:25 +0100 Subject: [PATCH] test: add unit test for part one --- internal/2016/DayTwo/code_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 internal/2016/DayTwo/code_test.go diff --git a/internal/2016/DayTwo/code_test.go b/internal/2016/DayTwo/code_test.go new file mode 100644 index 0000000..3b5cbca --- /dev/null +++ b/internal/2016/DayTwo/code_test.go @@ -0,0 +1,15 @@ +package daytwo + +import ( + "testing" +) + +var testInput = []string{"ULL", "RRDDD", "LURDL", "UUUUD"} + +func TestPartOne(t *testing.T) { + expected := 1985 + got := PartOne(testInput) + if got != expected { + t.Errorf("PartOne() = %d, want %d", got, expected) + } +}