update test for TrimEdges function to use an 8x8 single color image

This commit is contained in:
Vetle Leinonen-Roeim 2025-03-30 17:08:46 +02:00
parent b1b53c0773
commit 3a6c85148a

View file

@ -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