Sha256: 4ae98f0733aac905e80e79f6513263ed89eeddc734a562eb2d1adee617d13972

Contents?: true

Size: 832 Bytes

Versions: 2

Compression:

Stored size: 832 Bytes

Contents

require("./env");

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

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

suite.addBatch({
  "times": {
    topic: d3.geo.times,
    "projections and inverse projections": function(times) {
      assert.equalInverse(times, [  0,   0], [480,        250]);
      assert.equalInverse(times, [  0, -45], [480,        356.066217]);
      assert.equalInverse(times, [  0,  45], [480,        143.933782]);
      assert.equalInverse(times, [-90,   0], [304.505921, 250]);
      assert.equalInverse(times, [ 90,   0], [655.494078, 250]);
      assert.equalInverse(times, [-80,  15], [324.777008, 216.288205]);
      assert.equalInverse(times, [  1,   1], [481.949891, 247.765341]);
      assert.equalInverse(times, [ 15,  45], [507.861496, 143.933782]);
    }
  }
});

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