Skip to content

Commit 11a29fd

Browse files
committed
Update PngSsimComparerTests.cs
1 parent 62b6401 commit 11a29fd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/Verify.Tests/Compare/Png/PngSsimComparerTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ public async Task Threshold_Tuning_Tightens_Comparison()
8585
}
8686
}
8787

88+
[Fact]
89+
public async Task Single_Pixel_Grayscale_Identical()
90+
{
91+
var png = PngTestHelper.EncodeGray(1, 1, [0]);
92+
var result = await PngSsimComparer.Compare(new MemoryStream(png), new MemoryStream(png), emptyContext);
93+
Assert.True(result.IsEqual);
94+
}
95+
8896
[Fact]
8997
public async Task Corrupt_Png_Throws()
9098
{

0 commit comments

Comments
 (0)