Skip to content

Commit

Permalink
more lenient raster extent test
Browse files Browse the repository at this point in the history
  • Loading branch information
gretacb committed Jul 29, 2014
1 parent 8ef75ec commit e7eb28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/datasourceProcessor.test.js
Expand Up @@ -58,7 +58,7 @@ describe('[TIF] Getting center of extent', function() {
assert.ok(typeof result.extent == 'object');
assert.ok(typeof result.center == 'object');
assert.deepEqual(result.center, expectedCenter);
assert.deepEqual(result.extent, expectedExtent);
assert.ok(result.extent[0] > (expectedExtent[0] - 0.0001) && result.extent[0] < (expectedExtent[0] + 0.0001));
});
});
describe('[VRT] Getting center of extent', function() {
Expand All @@ -80,7 +80,7 @@ describe('[VRT] Getting center of extent', function() {
assert.ok(typeof result.extent == 'object');
assert.ok(typeof result.center == 'object');
assert.deepEqual(result.center, expectedCenter);
assert.deepEqual(result.extent, expectedExtent);
assert.ok(result.extent[0] > (expectedExtent[0] - 0.0001) && result.extent[0] < (expectedExtent[0] + 0.0001));
});
});
describe('[CSV] Getting center of extent', function() {
Expand Down

2 comments on commit e7eb28c

@yhahn
Copy link
Member

@yhahn yhahn commented on e7eb28c Jul 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GretaCB you'll want to do this for all 4 values ya? ie. expectedExtent[0], expectedExtent[1], ...

@GretaCB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call, yes

Please sign in to comment.