Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #234 from markstos/circle-still-not-closed
Browse files Browse the repository at this point in the history
circles are still not being closed with Circle.  New failing test illustrates it.
  • Loading branch information
patrickarlt committed Feb 20, 2014
2 parents 6fcb6ec + 24f0d88 commit 2ee3416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/terraformerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ describe("Primitives", function(){
});

it("should form a closed polygon", function(){
expect(circle.geometry.coordinates[0]).toEqual(circle.geometry.coordinates[circle.geometry.coordinates.length-1]);
expect(circle.geometry.coordinates[0][0][0]).toEqual(circle.geometry.coordinates[0][circle.geometry.coordinates[0].length-1][0]);
expect(circle.geometry.coordinates[0][0][1]).toEqual(circle.geometry.coordinates[0][circle.geometry.coordinates[0].length-1][1]);
});

it("should have a getter for steps", function(){
Expand Down

0 comments on commit 2ee3416

Please sign in to comment.