Sha256: 6bbb271d57b7c83be74ea7dc413b88198b1a84870ff451c4fa3c01e56472d7cf

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

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

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

suite.addBatch({
  "loximuthal": {
    topic: load("loximuthal"),
    "default": {
      topic: function(geo) { return 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.464314, 210.730091]);
        assert.equalInverse(loximuthal, [   1,   1], [482.390500, 247.382006]);
      }
    }
  }
});

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/loximuthal-test.js
d3js-plugins-rails-0.0.7 vendor/assets/javascripts/d3/plugins/geo/projection/test/loximuthal-test.js
d3js-plugins-rails-0.0.6 vendor/assets/javascripts/d3/plugins/geo/projection/test/loximuthal-test.js
d3js-plugins-rails-0.0.5 vendor/assets/javascripts/d3/plugins/geo/projection/test/loximuthal-test.js