<commit_before>var tape = require("tape"),
    d3 = require("../");

require("./projectionEqual");

[
  d3.geoAiry,
  d3.geoAitoff,
  d3.geoArmadillo,
  d3.geoAugust,
  d3.geoBaker,
  d3.geoBerghaus,
  d3.geoBoggs,
  d3.geoBonne,
  d3.geoBottomley,
  d3.geoBromley,
  // d3.geoChamberlin,
  // d3.geoChamberlinAfrica,
  d3.geoCollignon,
  d3.geoCraig,
  d3.geoCraster,
  d3.geoCylindricalEqualArea,
  d3.geoCylindricalStereographic,
  d3.geoEckert1,
  d3.geoEckert2,
  d3.geoEckert3,
  d3.geoEckert4,
  d3.geoEckert5,
  d3.geoEckert6,
  d3.geoEisenlohr,
  d3.geoFahey,
  d3.geoFoucaut,
  d3.geoGilbert,
  d3.geoGingery,
  d3.geoGinzburg4,
  d3.geoGinzburg5,
  d3.geoGinzburg6,
  d3.geoGinzburg8,
  d3.geoGinzburg9,
  d3.geoGringorten,
  d3.geoGringortenQuincuncial,
  d3.geoGuyou,
  d3.geoHammer,
  d3.geoHammerRetroazimuthal,
  d3.geoHealpix,
  d3.geoHill,
  d3.geoHomolosine,
  // d3.geoInterrupt,
  // d3.geoInterruptedBoggs,
  // d3.geoInterruptedHomolosine,
  // d3.geoInterruptedMollweide,
  // d3.geoInterruptedMollweideHemispheres,
  // d3.geoInterruptedSinuMollweide,
  // d3.geoInterruptedSinusoidal,
  d3.geoKavrayskiy7,
  d3.geoLagrange,
  d3.geoLarrivee,
  d3.geoLaskowski,
  d3.geoLittrow,
  d3.geoLoximuthal,
  d3.geoMiller,
  // d3.geoModifiedStereographic,
  // d3.geoModifiedStereographicAlaska,
  // d3.geoModifiedStereographicGs48,
  // d3.geoModifiedStereographicGs50,
  // d3.geoModifiedStereographicMiller,
  // d3.geoModifiedStereographicLee,
  d3.geoMollweide,
  d3.geoMtFlatPolarParabolic,
  d3.geoMtFlatPolarQuartic,
  d3.geoMtFlatPolarSinusoidal,
  d3.geoNaturalEarth,
  d3.geoNaturalEarth2,
  d3.geoNellHammer,
  d3.geoPatterson,
  d3.geoPeirceQuincuncial,
  // d3.geoPierceQuincuncial, // Alias of Peirce (typo)
  d3.geoPolyconic,
  d3.geoRectangularPolyconic,
  d3.geoRobinson,
  d3.geoSatellite,
  d3.geoSinuMollweide,
  d3.geoSinusoidal,
  d3.geoTimes,
  // d3.geoTwoPointAzimuthal,
  // d3.geoTwoPointAzimuthalUsa,
  // d3.geoTwoPointEquidistant,
  d3.geoTwoPointEquidistantUsa,
  d3.geoVanDerGrinten,
  d3.geoVanDerGrinten2,
  d3.geoVanDerGrinten3,
  d3.geoVanDerGrinten4,
  d3.geoWagner4,
  d3.geoWagner6,
  d3.geoWagner7,
  d3.geoWiechel,
  d3.geoWinkel3
].forEach(function(factory) {
  var name = factory.name, projection = factory();
  tape(name + "(point) and " + name + ".invert(point) are symmetric", function(test) {
    [[0, 0], [30.3, 24.1], [-10, 42], [-2, -5]].forEach(function(point) {
      test.projectionEqual(projection, point, projection(point));
    });
    test.end();
  });
});<commit_msg>more projection inverse tests (#70)<commit_after>var tape = require("tape"),
    d3 = require("../");

require("./projectionEqual");

var points = [[0, 0], [30.3, 24.1], [-10, 42], [-2, -5], [0,-55]];

[
  d3.geoAiry,
  d3.geoAitoff,
  d3.geoArmadillo,
  d3.geoAugust,
  d3.geoBaker,
  d3.geoBerghaus,
  d3.geoBoggs,
  d3.geoBonne,
  d3.geoBottomley,
  d3.geoBromley,
  // d3.geoChamberlin,
  // d3.geoChamberlinAfrica,
  d3.geoCollignon,
  d3.geoCraig,
  d3.geoCraster,
  d3.geoCylindricalEqualArea,
  d3.geoCylindricalStereographic,
  d3.geoEckert1,
  d3.geoEckert2,
  d3.geoEckert3,
  d3.geoEckert4,
  d3.geoEckert5,
  d3.geoEckert6,
  d3.geoEisenlohr,
  d3.geoFahey,
  d3.geoFoucaut,
  d3.geoGilbert,
  d3.geoGingery,
  d3.geoGinzburg4,
  d3.geoGinzburg5,
  d3.geoGinzburg6,
  d3.geoGinzburg8,
  d3.geoGinzburg9,
  d3.geoGringorten,
  d3.geoGringortenQuincuncial,
  d3.geoGuyou,
  d3.geoHammer,
  d3.geoHammerRetroazimuthal,
  d3.geoHealpix,
  d3.geoHill,
  d3.geoHomolosine,
  // d3.geoInterrupt, // factory of factory
  d3.geoInterruptedBoggs,
  d3.geoInterruptedHomolosine,
  d3.geoInterruptedMollweide,
  d3.geoInterruptedMollweideHemispheres,
  // d3.geoInterruptedSinuMollweide,
  d3.geoInterruptedSinusoidal,
  d3.geoKavrayskiy7,
  d3.geoLagrange,
  d3.geoLarrivee,
  d3.geoLaskowski,
  d3.geoLittrow,
  d3.geoLoximuthal,
  d3.geoMiller,
  // d3.geoModifiedStereographic, // factory of factory
  // d3.geoModifiedStereographicAlaska,
  // d3.geoModifiedStereographicGs48,
  // d3.geoModifiedStereographicGs50,
  // d3.geoModifiedStereographicMiller,
  // d3.geoModifiedStereographicLee,
  d3.geoMollweide,
  d3.geoMtFlatPolarParabolic,
  d3.geoMtFlatPolarQuartic,
  d3.geoMtFlatPolarSinusoidal,
  d3.geoNaturalEarth,
  d3.geoNaturalEarth2,
  d3.geoNellHammer,
  d3.geoPatterson,
  d3.geoPeirceQuincuncial,
  // d3.geoPierceQuincuncial, // Alias of Peirce (typo)
  d3.geoPolyconic,
  d3.geoRectangularPolyconic,
  d3.geoRobinson,
  d3.geoSatellite,
  d3.geoSinuMollweide,
  d3.geoSinusoidal,
  d3.geoTimes,
  // d3.geoTwoPointAzimuthal,
  // d3.geoTwoPointAzimuthalUsa,
  // d3.geoTwoPointEquidistant,
  d3.geoTwoPointEquidistantUsa,
  d3.geoVanDerGrinten,
  d3.geoVanDerGrinten2,
  d3.geoVanDerGrinten3,
  d3.geoVanDerGrinten4,
  d3.geoWagner4,
  d3.geoWagner6,
  d3.geoWagner7,
  d3.geoWiechel,
  d3.geoWinkel3
].forEach(function(factory) {
  var name = factory.name, projection = factory();
  tape(name + "(point) and " + name + ".invert(point) are symmetric", function(test) {
    points.forEach(function(point) {
      test.projectionEqual(projection, point, projection(point));
    });
    test.end();
  });
});
{'fraction_non_alphanumeric': 0.12722351121423048, 'fraction_numerical': 0.051237432327919566, 'mean_word_length': 3.931363203050524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6302075', 'n_tokens_mistral': 2521, 'n_tokens_neox': 2423, 'n_words': 268}