diff --git a/container_test.go b/container_test.go index d96c677cb9bc2e8d4464309818a548081231158b..1c333f8b447d8d98467952e39124c8ac386c0ed4 100644 --- a/container_test.go +++ b/container_test.go @@ -41,11 +41,11 @@ func TestQueuesReturnTypeIsSameAsParameterToPush(t *testing.T) { func TestCorrectnessOfPop(t *testing.T) { q := New(PriorityComparator) tasks := []TestElem{ - TestElem{Key: "a", Priority: 9}, - TestElem{Key: "b", Priority: 4}, - TestElem{Key: "c", Priority: 3}, - TestElem{Key: "d", Priority: 0}, - TestElem{Key: "e", Priority: 6}, + {Key: "a", Priority: 9}, + {Key: "b", Priority: 4}, + {Key: "c", Priority: 3}, + {Key: "d", Priority: 0}, + {Key: "e", Priority: 6}, } for _, e := range tasks { q.Push(&e)