Permalink
Browse files

Fix grid_view test logic

  • Loading branch information...
1 parent 5baa723 commit 01f37abe682c3ef8a23b90e1203ad8625aef7f14 Dane Springmeyer committed Dec 21, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/grid_view.test.js
View
@@ -23,8 +23,8 @@ describe('mapnik.GridView ', function() {
if (mapnik.versions.mapnik_number < 200100) {
assert.equal(pixel, 0);
} else {
- assert.equal(pixel,-1 * 0x7FFFFFFFFFFFFFFF || -2147483648);
- assert.equal(pixel, mapnik.Grid.base_mask.toFixed());
+ assert.ok(pixel == -1 * 0x7FFFFFFFFFFFFFFF || pixel == -2147483648);
+ assert.ok(pixel.toFixed() == mapnik.Grid.base_mask.toFixed() || pixel == -2147483648);
}
done();
});
@@ -35,8 +35,8 @@ describe('mapnik.GridView ', function() {
if (mapnik.versions.mapnik_number < 200100) {
assert.equal(pixel, 0);
} else {
- assert.equal(pixel, -1 * 0x7FFFFFFFFFFFFFFF || -2147483648);
- assert.equal(pixel.toFixed(), mapnik.Grid.base_mask.toFixed());
+ assert.ok(pixel == -1 * 0x7FFFFFFFFFFFFFFF || pixel == -2147483648);
+ assert.ok(pixel.toFixed() == mapnik.Grid.base_mask.toFixed() || pixel == -2147483648);
}
});

0 comments on commit 01f37ab

Please sign in to comment.