{"size": 936, "ext": "js", "max_stars_repo_path": "data/4552.js", "max_stars_repo_name": "stas-vilchik/bdd-ml", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "data/4552.js", "max_issues_repo_name": "stas-vilchik/bdd-ml", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "data/4552.js", "max_forks_repo_name": "stas-vilchik/bdd-ml", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.5294117647, "max_line_length": 78, "alphanum_fraction": 0.4861111111}
{
  [
    [0, 0],
    [0, 0.001],
    [1.23, 1.229],
    [1.23, 1.226],
    [1.23, 1.225],
    [1.23, 1.234]
  ].forEach(([n1, n2]) => {
    it(`{pass: true} expect(${n1})toBeCloseTo( ${n2})`, () => {
      jestExpect(n1).toBeCloseTo(n2);
      expect(() =>
        jestExpect(n1).not.toBeCloseTo(n2)
      ).toThrowErrorMatchingSnapshot();
    });
  });
  [[0, 0.01], [1, 1.23], [1.23, 1.2249999]].forEach(([n1, n2]) => {
    it(`throws: [${n1}, ${n2}]`, () => {
      expect(() =>
        jestExpect(n1).toBeCloseTo(n2)
      ).toThrowErrorMatchingSnapshot();
      jestExpect(n1).not.toBeCloseTo(n2);
    });
  });
  [[0, 0.1, 0], [0, 0.0001, 3], [0, 0.000004, 5]].forEach(([n1, n2, p]) => {
    it(`accepts an optional precision argument: [${n1}, ${n2}, ${p}]`, () => {
      jestExpect(n1).toBeCloseTo(n2, p);
      expect(() =>
        jestExpect(n1).not.toBeCloseTo(n2, p)
      ).toThrowErrorMatchingSnapshot();
    });
  });
}
