From 867d0874dcddbe141fcb47ba24f3113991e47f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 7 Mar 2017 17:41:37 +0100 Subject: [PATCH] Tests: Implement unit test for #1269. Closes #1269. --- test/tests/Curve.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/tests/Curve.js b/test/tests/Curve.js index 5f58a21b..341fd219 100644 --- a/test/tests/Curve.js +++ b/test/tests/Curve.js @@ -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() {