Skip to content

Commit

Permalink
Fix confine test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldgray committed Aug 2, 2024
1 parent 15f0f14 commit 5b7826c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/IIIF/IIIF.Tests/ImageApi/SizeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public void GetSizeIncreasePercent_Throws_IfSmallerLarger()
new TestSizeData(500, 400, 300, 300, 300, 240), // current portrait
new TestSizeData(400, 500, 300, 300, 240, 300), // current landscape
new TestSizeData(500, 500, 300, 200, 200, 200), // target portrait
new TestSizeData(500, 500, 200, 300, 200, 300), // target landscape
new TestSizeData(500, 500, 200, 300, 200, 200), // target landscape
new TestSizeData(4553, 5668, 200, 200, 161, 200) // a specific rounding issue with Appetiser
};

Expand All @@ -390,10 +390,8 @@ public static IEnumerable<object[]> ConfineData
{
get
{
var data = sampleTestData.Where(d => d.ConfineWidth == d.ConfineHeight);

var retVal = new List<object[]>();
retVal.AddRange(data.Select(sizeData => new object[] { sizeData }));
retVal.AddRange(sampleTestData.Select(sizeData => new object[] { sizeData }));
return retVal;
}
}
Expand Down

0 comments on commit 5b7826c

Please sign in to comment.