Tests: Implement unit test for #1269.

Closes #1269.
This commit is contained in:
Jürg Lehni 2017-03-07 17:41:37 +01:00
parent 8461d8d9f4
commit 867d0874dc

View file

@ -282,6 +282,9 @@ test('Curve#isStraight()', function() {
equals(function() {
return new Curve([100, 100], null, [-50, -50], [100, 100]).isStraight();
}, false);
equals(function() { // #1269
return new Curve([100, 300], [ 20, -20 ], [ -10, 10 ], [200, 200]).isStraight();
}, true);
});
test('Curve#isLinear()', function() {