diff -r efd9c589177a -r c0b4a8b5a012 toolkit/javascript/d3/test/geo/path-test.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolkit/javascript/d3/test/geo/path-test.js Thu Apr 10 14:20:23 2014 +0200 @@ -0,0 +1,25 @@ +require("../env"); +require("../../d3"); +require("../../d3.geo"); + +var vows = require("vows"), + assert = require("assert"); + +var suite = vows.describe("d3.geo.path"); + +suite.addBatch({ + "path": { + topic: d3.geo.path, + "Polygon": function(path) { + assert.equal(path({ + type: "Feature", + geometry: { + type: "Polygon", + coordinates: [[[-63.03, 18.02], [-63.14, 18.06], [-63.01, 18.07], [-63.03, 18.02]]] + }, + }), "M984.5652086349427,468.99159422596244L981.8396467935554,467.9114977057422L985.0785139575695,467.688661596079Z"); + } + } +}); + +suite.export(module);