diff --git a/test/tests/Point.js b/test/tests/Point.js index aceedf2c..0f1e7640 100644 --- a/test/tests/Point.js +++ b/test/tests/Point.js @@ -87,4 +87,18 @@ test('getDirectedAngle(point)', function() { var angle = new Point(10, -10).getDirectedAngle(new Point(1, 0)); equals(angle, 45); -}); \ No newline at end of file +}); + +test('equals()', function() { + equals(function() { + return new Point(10, 10).equals([10, 10]); + }, true); + + equals(function() { + return new Point(0, 0).equals({}); + }, false); + + equals(function() { + return new Point(0, 0).equals(null); + }, false); +});