mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-05-23 19:05:22 +02:00
update test for TrimEdges function to use an 8x8 single color image
This commit is contained in:
parent
b1b53c0773
commit
3a6c85148a
1 changed files with 2 additions and 2 deletions
|
|
@ -396,8 +396,8 @@ func TestTrimBordersOfSameColor(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTrimEdgesSingleColorImage(t *testing.T) {
|
func TestTrimEdgesSingleColorImage(t *testing.T) {
|
||||||
// Create a 4x4 image filled with a single color (white)
|
// Create an 8x8 image filled with a single color (white)
|
||||||
src := newImage(4, 4, color.NRGBA{255, 255, 255, 255})
|
src := newImage(8, 8, color.NRGBA{255, 255, 255, 255})
|
||||||
|
|
||||||
// The expected result should be the same as the source image
|
// The expected result should be the same as the source image
|
||||||
want := src
|
want := src
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue