Sha256: 8eeeb33c1fe2828abe123bc56f943c2a412f7b49c97dbd5afbf070f7d8bc9433

Contents?: true

Size: 978 Bytes

Versions: 2

Compression:

Stored size: 978 Bytes

Contents

require("./env");

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

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

suite.addBatch({
  "loximuthal": {
    topic: d3.geo.loximuthal,
    "projections and inverse projections": function(loximuthal) {
      assert.equalInverse(loximuthal, [   0,   0], [480,        250]);
      assert.equalInverse(loximuthal, [   0, -90], [480,        485.619449]);
      assert.equalInverse(loximuthal, [   0,  90], [480,         14.380550]);
      assert.equalInverse(loximuthal, [   0, -45], [480,        367.809724]);
      assert.equalInverse(loximuthal, [   0,  45], [480,        132.190275]);
      assert.equalInverse(loximuthal, [-180,   0], [ 48.773559, 250]);
      assert.equalInverse(loximuthal, [ 180,   0], [911.226440, 250]);
      assert.equalInverse(loximuthal, [-179,  15], [ 69.464314, 210.730091]);
      assert.equalInverse(loximuthal, [   1,   1], [482.390500, 247.382006]);
    }
  }
});

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