package daytwo import "testing" func TestPartOne(t *testing.T) { tests := []struct { name string input string expected int }{ {"2x3x4", "2x3x4", 58}, {"1x1x10", "1x1x10", 43}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got := PartOne([]string{tt.input}) if got != tt.expected { t.Errorf("PartOne() = %d, want %d", got, tt.expected) } }) } } func TestPartTwo(t *testing.T) { tests := []struct { name string input string expected int }{ {"2x3x4", "2x3x4", 34}, {"1x1x10", "1x1x10", 14}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got := PartTwo([]string{tt.input}) if got != tt.expected { t.Errorf("PartTwo() = %d, want %d", got, tt.expected) } }) } }