Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Roffe committed Nov 5, 2022
1 parent 3e30a57 commit 109cf57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vips/image_golden_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,13 @@ func TestImage_ExtractBand(t *testing.T) {
}, nil, nil)
}

func TestImage_ExtractBandToImage(t *testing.T) {
goldenTest(t, resources+"with_alpha.png", func(img *ImageRef) error {
_, err := img.ExtractBandToImage(2, 1)
return err
}, nil, nil)
}

func TestImage_Flatten(t *testing.T) {
goldenTest(t, resources+"with_alpha.png", func(img *ImageRef) error {
return img.Flatten(&Color{R: 32, G: 64, B: 128})
Expand Down

0 comments on commit 109cf57

Please sign in to comment.