diff --git a/test/unit/ColorConversionTests.js b/test/unit/ColorConversionTests.js index a3750d78..0436f6d9 100644 --- a/test/unit/ColorConversionTests.js +++ b/test/unit/ColorConversionTests.js @@ -13,7 +13,8 @@ Test.prototype.addAssert('colorsAlmostEqual', 2, function (found, wanted, messag } for (let i = 0; i < found.length; i++) { - if (Math.abs(found[i] - wanted[i]) > 1e-3) { + // smallest meaningful difference--detects changes in hue value after rounding + if (Math.abs(found[i] - wanted[i]) >= 0.5 / 360) { return this.fail(message, extra); } }