Blob Blame History Raw
commit ebf7f7b2e64210bc4673de8e3e89e308e67824b2
Author: Tom Hughes <tom@compton.nu>
Date:   Fri Jul 5 19:19:25 2013 +0100

    Workaround precision issues

diff --git a/test/image.test.js b/test/image.test.js
index 1bae901..4ed61bd 100644
--- a/test/image.test.js
+++ b/test/image.test.js
@@ -149,6 +149,6 @@ describe('mapnik.Image ', function() {
         assert.equal(pixel3.r, 0);
         assert.equal(pixel3.g, 128);
         assert.equal(pixel3.b, 0);
-        assert.equal(pixel3.a, 255);
+        assert(pixel3.a == 254 || pixel3.a == 255);
     });
 });