Skip to content

Commit

Permalink
Allow small difference when writing the file.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 10, 2023
1 parent 8068d80 commit d775ded
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ protected void AssertCompressNotSmaller(string fileName)
var lengthB = AssertCompressNotSmaller(fileName, (string file) => Optimizer.Compress(file));
var lengthC = AssertCompressNotSmaller(fileName, (Stream stream) => Optimizer.Compress(stream));

Assert.Equal(lengthA, lengthB);
Assert.Equal(lengthB, lengthC);
Assert.InRange(lengthA, lengthB - 1, lengthB + 1);
Assert.InRange(lengthB, lengthC - 1, lengthC + 1);
}

protected void AssertCompressTwice(string fileName)
Expand Down

0 comments on commit d775ded

Please sign in to comment.