Sha256: ecfd1770c6673647e550ecdf8d273dbb6e7c9c7a2cc778cc8e89901ff652cad6

Contents?: true

Size: 913 Bytes

Versions: 2

Compression:

Stored size: 913 Bytes

Contents

require("./env");

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

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

suite.addBatch({
  "fahey": {
    topic: d3.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

2 entries across 2 versions & 1 rubygems

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