Sha256: ac39f1048b9cd3cc6dddebce5f61ab2022ae08d5ff3e57857a4aee7f2e8a5778

Contents?: true

Size: 1000 Bytes

Versions: 4

Compression:

Stored size: 1000 Bytes

Contents

require("./env");

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

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

suite.addBatch({
  "aitoff": {
    topic: d3.geo.aitoff,
    "projections and inverse projections": function(aitoff) {
      assert.equalInverse(aitoff, [   0,   0], [480,        250]);
      assert.equalInverse(aitoff, [   0, -90], [480,        485.619449]);
      assert.equalInverse(aitoff, [   0,  90], [480,         14.380550]);
      assert.equalInverse(aitoff, [   0, -45], [480,        367.809724]);
      assert.equalInverse(aitoff, [   0,  45], [480,        132.190275]);
      assert.equalInverse(aitoff, [-180,   0], [  8.761101, 250]);
      assert.equalInverse(aitoff, [ 180,   0], [951.238898, 250]);
      assert.equalInverse(aitoff, [-179,  15], [ 27.261952, 189.342293]);
      assert.equalInverse(aitoff, [   1,   1], [482.617728, 247.381972]);
      assert.equalInverse(aitoff, [  45,  87], [489.158099, 21.6821110]);
    }
  }
});

suite.export(module);

Version data entries

4 entries across 4 versions & 1 rubygems

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