Target, source arg order for make* transform functions

This commit is contained in:
Tim Schaub
2018-11-17 16:28:10 +01:00
parent c169fec4a8
commit 5d528dca3b
7 changed files with 9 additions and 10 deletions

View File

@@ -149,7 +149,7 @@ describe('ol.transform', function() {
it('makes the target the inverse of the source', function() {
const source = [1, 1, 1, 2, 2, 0];
const target = [1, 0, 0, 1, 0, 0];
makeInverse(source, target);
makeInverse(target, source);
expect(source).to.eql([1, 1, 1, 2, 2, 0]);
expect(target).to.eql([2, -1, -1, 1, -4, 2]);
});
@@ -157,7 +157,7 @@ describe('ol.transform', function() {
it('returns the target', function() {
const source = [1, 1, 1, 2, 2, 0];
const target = [1, 0, 0, 1, 0, 0];
const inverted = makeInverse(source, target);
const inverted = makeInverse(target, source);
expect(target).to.be(inverted);
});
});