Sha256: 3a8b884b65a1ba5a02b142e26c266ca85ef70f3014d3e912005bec35f5981b13

Contents?: true

Size: 939 Bytes

Versions: 4

Compression:

Stored size: 939 Bytes

Contents

require("./env");

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

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

suite.addBatch({
  "craster": {
    topic: d3.geo.craster,
    "projections and inverse projections": function(craster) {
      assert.equalInverse(craster, [   0,   0], [480,        250]);
      assert.equalInverse(craster, [   0, -90], [480,        480.248509]);
      assert.equalInverse(craster, [   0,  90], [480,         19.751490]);
      assert.equalInverse(craster, [   0, -45], [480,        369.185398]);
      assert.equalInverse(craster, [   0,  45], [480,        130.814601]);
      assert.equalInverse(craster, [-180,   0], [ 19.502981, 250]);
      assert.equalInverse(craster, [ 180,   0], [940.497018, 250]);
      assert.equalInverse(craster, [-179,  15], [ 35.975533, 209.865040]);
      assert.equalInverse(craster, [   1,   1], [482.557970, 247.320952]);
    }
  }
});

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/craster-test.js
d3js-plugins-rails-0.0.3 vendor/assets/javascripts/d3/plugins/geo/projection/test/craster-test.js
d3js-plugins-rails-0.0.2 vendor/assets/javascripts/d3/plugins/geo/projection/test/craster-test.js
d3js-plugins-rails-0.0.1 vendor/assets/javascripts/d3/plugins/geo/projection/test/craster-test.js