Skip to content

Commit

Permalink
Fixed wrong naming
Browse files Browse the repository at this point in the history
Naming was copy/pasted from above, but should be lastTwoNames here.
  • Loading branch information
Dominik Liebler authored and mauricioabreu committed Jul 30, 2024
1 parent be18ec4 commit 4b64a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/slices/slices4/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ func TestGetLastTwoNames(t *testing.T) {
expectedLastTwoNames := []string{"Carl", "Peter"}

if !reflect.DeepEqual(lastTwoNames, expectedLastTwoNames) {
t.Errorf("firstTwoNames should be %v, but got %v", expectedLastTwoNames, lastTwoNames)
t.Errorf("lastTwoNames should be %v, but got %v", expectedLastTwoNames, lastTwoNames)
}
}

0 comments on commit 4b64a07

Please sign in to comment.