Sha256: 19c91c621744feb11f70be561364d49c3f7218def7f992c30d973e9e58c9b662

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

require("./env");

var vows = require("vows"),
    assert = require("assert");

var suite = vows.describe("d3.geo.polyconic");

suite.addBatch({
  "polyconic": {
    topic: d3.geo.polyconic,
    "projections and inverse projections": function(polyconic) {
      assert.equalInverse(polyconic, [  0,   0], [480,        250]);
      assert.equalInverse(polyconic, [  0, -45], [480,        367.809724]);
      assert.equalInverse(polyconic, [  0,  45], [480,        132.190275]);
      assert.equalInverse(polyconic, [-90,   0], [244.380550, 250]);
      assert.equalInverse(polyconic, [ 90,   0], [715.619449, 250]);
      assert.equalInverse(polyconic, [-80,  15], [282.071605, 174.572089]);
      assert.equalInverse(polyconic, [120,  15], [768.810227, 130.477707]);
      assert.equalInverse(polyconic, [  1,   1], [482.617595, 247.381607]);
      assert.equalInverse(polyconic, [ 15,  45], [507.609690, 129.627397]);
      assert.equalInverse(polyconic,[-179,  45], [359.533865,-107.184834]);
    }
  }
});

suite.export(module);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
d3js-plugins-rails-0.0.4 vendor/assets/javascripts/d3/plugins/geo/projection/test/polyconic-test.js
d3js-plugins-rails-0.0.3 vendor/assets/javascripts/d3/plugins/geo/projection/test/polyconic-test.js