Sha256: 30a7a10ee2d3e67f34e5c9c801756cf9d6e247c8f5f097b5e1b950e3db263e6a
Contents?: true
Size: 978 Bytes
Versions: 2
Compression:
Stored size: 978 Bytes
Contents
require("./env"); var vows = require("vows"), assert = require("assert"); var suite = vows.describe("d3.geo.loximuthal"); suite.addBatch({ "loximuthal": { topic: d3.geo.loximuthal, "projections and inverse projections": function(loximuthal) { assert.equalInverse(loximuthal, [ 0, 0], [480, 250]); assert.equalInverse(loximuthal, [ 0, -90], [480, 485.619449]); assert.equalInverse(loximuthal, [ 0, 90], [480, 14.380550]); assert.equalInverse(loximuthal, [ 0, -45], [480, 367.809724]); assert.equalInverse(loximuthal, [ 0, 45], [480, 132.190275]); assert.equalInverse(loximuthal, [-180, 0], [ 48.773559, 250]); assert.equalInverse(loximuthal, [ 180, 0], [911.226440, 250]); assert.equalInverse(loximuthal, [-179, 15], [69.4643149, 210.730091]); assert.equalInverse(loximuthal, [ 1, 1], [482.390500, 247.382006]); } } }); suite.export(module);
Version data entries
2 entries across 2 versions & 1 rubygems