Sha256: 7ed5130efe7c06f03bbfca82abdbc270fae7ee1aab78de90f06a53d4b70b4636

Contents?: true

Size: 952 Bytes

Versions: 4

Compression:

Stored size: 952 Bytes

Contents

require("./env");

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

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

suite.addBatch({
  "larrivee": {
    topic: d3.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.4 vendor/assets/javascripts/d3/plugins/geo/projection/test/larrivee-test.js
d3js-plugins-rails-0.0.3 vendor/assets/javascripts/d3/plugins/geo/projection/test/larrivee-test.js
d3js-plugins-rails-0.0.2 vendor/assets/javascripts/d3/plugins/geo/projection/test/larrivee-test.js
d3js-plugins-rails-0.0.1 vendor/assets/javascripts/d3/plugins/geo/projection/test/larrivee-test.js