Sha256: b6c6b08095512fc55ad727776f6c7e7b98a5c2da59f5ca44d4b0ae6bc19061b5

Contents?: true

Size: 986 Bytes

Versions: 4

Compression:

Stored size: 986 Bytes

Contents

require("./env");

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

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

suite.addBatch({
  "boggs": {
    topic: d3.geo.boggs,
    "projections and inverse projections": function(boggs) {
      assert.equalInverse(boggs, [   0,   0], [480,        250]);
      assert.equalInverse(boggs, [   0, -90], [480,        473.567218]);
      assert.equalInverse(boggs, [   0,  90], [480,         26.432781]);
      assert.equalInverse(boggs, [   0, -45], [480,        371.532657]);
      assert.equalInverse(boggs, [   0,  45], [480,        128.467342]);
      assert.equalInverse(boggs, [-180,   0], [ 32.864228, 250]);
      assert.equalInverse(boggs, [ 180,   0], [927.135771, 250]);
      assert.equalInverse(boggs, [-179,  15], [ 47.500957, 208.708722]);
      assert.equalInverse(boggs, [   1,   1], [482.483785, 247.240908]);
      assert.equalInverse(boggs, [  45,  87], [488.857270,  31.512628]);
    }
  }
});

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