[Pkg-javascript-commits] [leaflet-markercluster] 92/219: Update QuickHullSpec.js
Jonas Smedegaard
dr at jones.dk
Sat May 7 09:39:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet-markercluster.
commit 84da57e414555645e35e73c7755f3fc19ba23972
Author: olive380 <olive380 at users.noreply.github.com>
Date: Fri Aug 7 00:08:15 2015 +0200
Update QuickHullSpec.js
---
spec/suites/QuickHullSpec.js | 47 ++++++++++++++++++++++++++++++--------------
1 file changed, 32 insertions(+), 15 deletions(-)
diff --git a/spec/suites/QuickHullSpec.js b/spec/suites/QuickHullSpec.js
index a11325f..38a68e9 100644
--- a/spec/suites/QuickHullSpec.js
+++ b/spec/suites/QuickHullSpec.js
@@ -17,19 +17,36 @@ describe('quickhull', function () {
});
describe('getConvexHull', function () {
- it('creates a hull', function () {
- expect(L.QuickHull.getConvexHull([
- { lat: 0, lng: 0 },
- { lat: 10, lng: 0 },
- { lat: 10, lng: 10 },
- { lat: 0, lng: 10 },
- { lat: 5, lng: 5 },
- ])).to.eql([
- { lat: 0, lng: 10 },
- { lat: 10, lng: 10 },
- { lat: 10, lng: 0 },
- { lat: 0, lng: 0 },
- ]);
- });
- });
+ it('creates a hull', function () {
+ expect(L.QuickHull.getConvexHull([ { lat: 0, lng: 0 },
+ { lat: 10, lng: 0 },
+ { lat: 10, lng: 10 },
+ { lat: 0, lng: 10 },
+ { lat: 5, lng: 5 }
+ ])).to.eql([
+ { lat: 0, lng: 10 },
+ { lat: 10, lng: 10 },
+ { lat: 10, lng: 0 },
+ { lat: 0, lng: 0 }
+ ]);
+ });
+ it('creates a hull for vertically-aligned objects', function () {
+ expect(L.QuickHull.getConvexHull([ { lat: 0, lng: 0 },
+ { lat: 5, lng: 0 },
+ { lat: 10, lng: 0 }
+ ])).to.eql([
+ { lat: 0, lng: 0 },
+ { lat: 10, lng: 0 }
+ ]);
+ });
+ it('creates a hull for horizontally-aligned objects', function () {
+ expect(L.QuickHull.getConvexHull([ { lat: 0, lng: 0 },
+ { lat: 0, lng: 5 },
+ { lat: 0, lng: 10 }
+ ])).to.eql([
+ { lat: 0, lng: 0 },
+ { lat: 0, lng: 10 }
+ ]);
+ });
+ });
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git
More information about the Pkg-javascript-commits
mailing list