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) + } +}