Sha256: cfdbb193ab478d4bd6f2a2aeda981365f08b1a00f014ee32023d19ac5c449f4b
Contents?: true
Size: 926 Bytes
Versions: 4
Compression:
Stored size: 926 Bytes
Contents
require("./env"); var vows = require("vows"), assert = require("assert"); var suite = vows.describe("d3.geo.hatano"); suite.addBatch({ "hatano": { topic: d3.geo.hatano, "projections and inverse projections": function(hatano) { assert.equalInverse(hatano, [ 0, 0], [480, 250]); assert.equalInverse(hatano, [ 0, -90], [480, 441.538303]); assert.equalInverse(hatano, [ 0, 90], [480, 53.383198]); assert.equalInverse(hatano, [ 0, -45], [480, 379.209449]); assert.equalInverse(hatano, [ 0, 45], [480, 119.704758]); assert.equalInverse(hatano, [-180, 0], [ 79.446936, 250]); assert.equalInverse(hatano, [ 180, 0], [880.553063, 250]); assert.equalInverse(hatano, [-179, 15], [87.7505160, 204.093101]); assert.equalInverse(hatano, [ 1, 1], [482.225143, 246.920082]); } } }); suite.export(module);
Version data entries
4 entries across 4 versions & 1 rubygems