Move flat geom files so they are named like their provides
This commit is contained in:
26
test/spec/ol/geom/flat/inflate.test.js
Normal file
26
test/spec/ol/geom/flat/inflate.test.js
Normal file
@@ -0,0 +1,26 @@
|
||||
goog.provide('ol.test.geom.flat.inflate');
|
||||
|
||||
describe('ol.geom.flat.inflate', function() {
|
||||
|
||||
describe('ol.geom.flat.inflate.coordinates', function() {
|
||||
|
||||
it('inflates coordinates', function() {
|
||||
var coordinates = ol.geom.flat.inflate.coordinates([1, 2, 3, 4], 0, 4, 2);
|
||||
expect(coordinates).to.eql([[1, 2], [3, 4]]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('ol.geom.flat.inflate.coordinatess', function() {
|
||||
|
||||
it('inflates arrays of coordinates', function() {
|
||||
var coordinatess = ol.geom.flat.inflate.coordinatess(
|
||||
[1, 2, 3, 4, 5, 6, 7, 8], 0, [4, 8], 2);
|
||||
expect(coordinatess).to.eql([[[1, 2], [3, 4]], [[5, 6], [7, 8]]]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.geom.flat.inflate');
|
||||
Reference in New Issue
Block a user