test: standardization

This commit is contained in:
2025-11-29 09:39:33 +01:00
parent ff4b7b281c
commit da78d01d9f
3 changed files with 6 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ func TestPartOne(t *testing.T) {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
got := PartOne(tt.input) got := PartOne(tt.input)
if got != tt.expected { if got != tt.expected {
t.Errorf("PartOne(%q) = %d, want %d", tt.input, got, tt.expected) t.Errorf("PartOne() = %d, want %d", got, tt.expected)
} }
}) })
} }
@@ -43,7 +43,7 @@ func TestPartTwo(t *testing.T) {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
got := PartTwo(tt.input) got := PartTwo(tt.input)
if got != tt.expected { if got != tt.expected {
t.Errorf("PartTwo(%q) = %d, want %d", tt.input, got, tt.expected) t.Errorf("PartTwo() = %d, want %d", got, tt.expected)
} }
}) })
} }

View File

@@ -17,7 +17,7 @@ func TestPartOne(t *testing.T) {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
got := PartOne(tt.input) got := PartOne(tt.input)
if got != tt.expected { if got != tt.expected {
t.Errorf("PartOne(%q) = %d, want %d", tt.input, got, tt.expected) t.Errorf("PartOne() = %d, want %d", got, tt.expected)
} }
}) })
} }
@@ -38,7 +38,7 @@ func TestPartTwo(t *testing.T) {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
got := PartTwo(tt.input) got := PartTwo(tt.input)
if got != tt.expected { if got != tt.expected {
t.Errorf("PartTwo(%q) = %d, want %d", tt.input, got, tt.expected) t.Errorf("PartTwo() = %d, want %d", got, tt.expected)
} }
}) })
} }

View File

@@ -16,7 +16,7 @@ func TestPartOne(t *testing.T) {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
got := PartOne([]string{tt.input}) got := PartOne([]string{tt.input})
if got != tt.expected { if got != tt.expected {
t.Errorf("PartOne(%q) = %d, want %d", tt.input, got, tt.expected) t.Errorf("PartOne() = %d, want %d", got, tt.expected)
} }
}) })
} }
@@ -36,7 +36,7 @@ func TestPartTwo(t *testing.T) {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
got := PartTwo([]string{tt.input}) got := PartTwo([]string{tt.input})
if got != tt.expected { if got != tt.expected {
t.Errorf("PartTwo(%q) = %d, want %d", tt.input, got, tt.expected) t.Errorf("PartTwo() = %d, want %d", got, tt.expected)
} }
}) })
} }