Sha256: dd4e56bdbbbf2fee807d6eb44669860366c95b471617198f08d41c6da215e40b

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

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

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

suite.addBatch({
  "larrivee": {
    topic: load("larrivee"),
    "default": {
      topic: function(geo) { return geo.larrivee(); },
      "projections and inverse projections": function(larrivee) {
        assert.equalInverse(larrivee, [   0,   0], [480,        250]);
        assert.equalInverse(larrivee, [   0, -90], [480,        583.216220]);
        assert.equalInverse(larrivee, [   0,  90], [480,        -83.216220]);
        assert.equalInverse(larrivee, [   0, -45], [480,        377.516326]);
        assert.equalInverse(larrivee, [   0,  45], [480,        122.483673]);
        assert.equalInverse(larrivee, [-180,   0], [  8.761101, 250]);
        assert.equalInverse(larrivee, [ 180,   0], [951.238898, 250]);
        assert.equalInverse(larrivee, [-179,  15], [ 15.405661, 204.340225]);
        assert.equalInverse(larrivee, [   1,   1], [482.617894, 247.381895]);
      }
    }
  }
});

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