Skip to content

Commit

Permalink
Simplify image generation test
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwilsdon committed Feb 11, 2020
1 parent 2daa26c commit 9408004
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func TestGenerateImage(t *testing.T) {
grid [8]string
size int
palette ppic.Palette
image [8]string
}{
{
grid: [8]string{
Expand All @@ -48,16 +47,6 @@ func TestGenerateImage(t *testing.T) {
},
size: 512,
palette: ppic.DefaultPalette,
image: [8]string{
"# # # #",
"# #### #",
" ",
"# # # #",
" # # ",
" ",
"## ##",
"# #",
},
},
{
grid: [8]string{
Expand All @@ -72,16 +61,6 @@ func TestGenerateImage(t *testing.T) {
},
size: 512,
palette: ppic.Palette{Foreground: color.RGBA{R: 0xFF, A: 0xFF}, Background: color.Black},
image: [8]string{
"# # # #",
"# #### #",
" ",
"# # # #",
" # # ",
" ",
"## ##",
"# #",
},
},
}

Expand All @@ -96,7 +75,7 @@ func TestGenerateImage(t *testing.T) {
t.Fatal(err)
}

err = ppictest.CompareImage(img, c.palette, c.image)
err = ppictest.CompareImage(img, c.palette, c.grid)

if err != nil {
t.Error(err)
Expand Down

0 comments on commit 9408004

Please sign in to comment.