Skip to content

Commit 2e0cbf2

Browse files
committed
Add tolerance to test
1 parent 41f2c96 commit 2e0cbf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Unit/Drivers/Gd/Modifiers/PlaceModifierTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function testColorChangeOpacityJpeg(): void
3535
$image = $this->createTestImage(16, 16)->fill('0000ff');
3636
$this->assertEquals('0000ff', $image->pickColor(10, 10)->toHex());
3737
$image->modify(new PlaceModifier($this->getTestResourcePath('exif.jpg'), opacity: 50));
38-
$this->assertColor(127, 83, 127, 255, $image->pickColor(10, 10), tolerance: 0);
38+
$this->assertColor(127, 83, 127, 255, $image->pickColor(10, 10), tolerance: 1);
3939
}
4040
}

tests/Unit/Drivers/Imagick/Modifiers/PlaceModifierTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function testColorChangeOpacityJpeg(): void
3535
$image = $this->createTestImage(16, 16)->fill('0000ff');
3636
$this->assertEquals('0000ff', $image->pickColor(10, 10)->toHex());
3737
$image->modify(new PlaceModifier($this->getTestResourcePath('exif.jpg'), opacity: 50));
38-
$this->assertColor(127, 83, 127, 255, $image->pickColor(10, 10), tolerance: 0);
38+
$this->assertColor(127, 83, 127, 255, $image->pickColor(10, 10), tolerance: 1);
3939
}
4040
}

0 commit comments

Comments
 (0)