Sha256: 1c6f4b0efa1439a78d2bbf9494de495b671600a55e5eeb626629ef005b7b91cb

Contents?: true

Size: 1 KB

Versions: 4

Compression:

Stored size: 1 KB

Contents

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

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

suite.addBatch({
  "fahey": {
    topic: load("fahey"),
    "default": {
      topic: function(geo) { return geo.fahey(); },
      "projections and inverse projections": function(fahey) {
        assert.equalInverse(fahey, [   0,   0], [480,        250]);
        assert.equalInverse(fahey, [   0, -90], [480,        522.872806]);
        assert.equalInverse(fahey, [   0,  90], [480,        -22.872806]);
        assert.equalInverse(fahey, [   0, -45], [480,        363.027617]);
        assert.equalInverse(fahey, [   0,  45], [480,        136.972382]);
        assert.equalInverse(fahey, [-180,   0], [ 93.983693, 250]);
        assert.equalInverse(fahey, [ 180,   0], [866.016306, 250]);
        assert.equalInverse(fahey, [-179,  15], [ 99.469475, 214.075613]);
        assert.equalInverse(fahey, [   1,   1], [482.144453, 247.618675]);
      }
    }
  }
});

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