mirror of
https://github.com/golang/go
synced 2024-11-23 15:20:03 -07:00
image/gif: map/slice literals janitoring
Simplify slice/map literal expressions. Caught with gofmt -d -s, fixed with gofmt -w -s Change-Id: Iefd5f263c4f89a81da9427a7b9d97f13c35ab64f Reviewed-on: https://go-review.googlesource.com/13838 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
876b7cc227
commit
220b5f7b54
@ -328,11 +328,11 @@ func TestEncodeAllFramesOutOfBounds(t *testing.T) {
|
||||
|
||||
func TestEncodeNonZeroMinPoint(t *testing.T) {
|
||||
points := []image.Point{
|
||||
image.Point{-8, -9},
|
||||
image.Point{-4, -4},
|
||||
image.Point{-3, +3},
|
||||
image.Point{+0, +0},
|
||||
image.Point{+2, +2},
|
||||
{-8, -9},
|
||||
{-4, -4},
|
||||
{-3, +3},
|
||||
{+0, +0},
|
||||
{+2, +2},
|
||||
}
|
||||
for _, p := range points {
|
||||
src := image.NewPaletted(image.Rectangle{Min: p, Max: p.Add(image.Point{6, 6})}, palette.Plan9)
|
||||
|
Loading…
Reference in New Issue
Block a user