ol/geom/flat/length export
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import _ol_geom_flat_length_ from '../../../../../src/ol/geom/flat/length.js';
|
||||
import {lineStringLength, linearRingLength} from '../../../../../src/ol/geom/flat/length.js';
|
||||
|
||||
|
||||
describe('ol.geom.flat.length', function() {
|
||||
@@ -13,7 +13,7 @@ describe('ol.geom.flat.length', function() {
|
||||
const offset = 0;
|
||||
const end = 8;
|
||||
const expected = 3;
|
||||
const got = _ol_geom_flat_length_.lineString(flatCoords, offset, end, stride);
|
||||
const got = lineStringLength(flatCoords, offset, end, stride);
|
||||
expect(got).to.be(expected);
|
||||
});
|
||||
|
||||
@@ -21,7 +21,7 @@ describe('ol.geom.flat.length', function() {
|
||||
const offset = 2;
|
||||
const end = 8;
|
||||
const expected = 2;
|
||||
const got = _ol_geom_flat_length_.lineString(flatCoords, offset, end, stride);
|
||||
const got = lineStringLength(flatCoords, offset, end, stride);
|
||||
expect(got).to.be(expected);
|
||||
});
|
||||
|
||||
@@ -29,7 +29,7 @@ describe('ol.geom.flat.length', function() {
|
||||
const offset = 0;
|
||||
const end = 4;
|
||||
const expected = 1;
|
||||
const got = _ol_geom_flat_length_.lineString(flatCoords, offset, end, stride);
|
||||
const got = lineStringLength(flatCoords, offset, end, stride);
|
||||
expect(got).to.be(expected);
|
||||
});
|
||||
|
||||
@@ -43,7 +43,7 @@ describe('ol.geom.flat.length', function() {
|
||||
const offset = 0;
|
||||
const end = 12;
|
||||
const expected = 3;
|
||||
const got = _ol_geom_flat_length_.lineString(flatCoords, offset, end, stride);
|
||||
const got = lineStringLength(flatCoords, offset, end, stride);
|
||||
expect(got).to.be(expected);
|
||||
});
|
||||
|
||||
@@ -51,7 +51,7 @@ describe('ol.geom.flat.length', function() {
|
||||
const offset = 3;
|
||||
const end = 12;
|
||||
const expected = 2;
|
||||
const got = _ol_geom_flat_length_.lineString(flatCoords, offset, end, stride);
|
||||
const got = lineStringLength(flatCoords, offset, end, stride);
|
||||
expect(got).to.be(expected);
|
||||
});
|
||||
|
||||
@@ -59,7 +59,7 @@ describe('ol.geom.flat.length', function() {
|
||||
const offset = 0;
|
||||
const end = 6;
|
||||
const expected = 1;
|
||||
const got = _ol_geom_flat_length_.lineString(flatCoords, offset, end, stride);
|
||||
const got = lineStringLength(flatCoords, offset, end, stride);
|
||||
expect(got).to.be(expected);
|
||||
});
|
||||
|
||||
@@ -74,7 +74,7 @@ describe('ol.geom.flat.length', function() {
|
||||
const offset = 0;
|
||||
const end = 8;
|
||||
const expected = 4;
|
||||
const got = _ol_geom_flat_length_.linearRing(flatCoords, offset, end, stride);
|
||||
const got = linearRingLength(flatCoords, offset, end, stride);
|
||||
expect(got).to.be(expected);
|
||||
});
|
||||
|
||||
@@ -84,7 +84,7 @@ describe('ol.geom.flat.length', function() {
|
||||
const offset = 0;
|
||||
const end = 14;
|
||||
const expected = 8;
|
||||
const got = _ol_geom_flat_length_.linearRing(flatCoords, offset, end, stride);
|
||||
const got = linearRingLength(flatCoords, offset, end, stride);
|
||||
expect(got).to.be(expected);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user