Sha256: 9e5dad2759080d86eb6eba7c837ad8e8ffd36a4e5a11c0ae4acc8e5d83fe06bb

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

var vows = require("vows"),
    assert = require("./assert"),
    load = require("./load");

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

suite.addBatch({
  "aitoff": {
    topic: load("aitoff"),
    "default": {
      topic: function(geo) { return 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.8 vendor/assets/javascripts/d3/plugins/geo/projection/test/aitoff-test.js
d3js-plugins-rails-0.0.7 vendor/assets/javascripts/d3/plugins/geo/projection/test/aitoff-test.js
d3js-plugins-rails-0.0.6 vendor/assets/javascripts/d3/plugins/geo/projection/test/aitoff-test.js
d3js-plugins-rails-0.0.5 vendor/assets/javascripts/d3/plugins/geo/projection/test/aitoff-test.js