{"size": 527, "ext": "js", "max_stars_repo_path": "src/Is the Sequence Linear, Quadratic or Cubic/index.test.js", "max_stars_repo_name": "Pustur/edabit-js-challenges", "max_stars_repo_stars_event_min_datetime": "2019-11-10T21:42:30.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-17T14:26:03.000Z", "max_issues_repo_path": "src/Is the Sequence Linear, Quadratic or Cubic/index.test.js", "max_issues_repo_name": "Pustur/edabit-js-challenges", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/Is the Sequence Linear, Quadratic or Cubic/index.test.js", "max_forks_repo_name": "Pustur/edabit-js-challenges", "max_forks_repo_forks_event_min_datetime": "2020-05-11T11:01:37.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-07T09:48:10.000Z"}
{"max_stars_count": 7, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 40.5384615385, "max_line_length": 63, "alphanum_fraction": 0.5844402277}
import seqLevel from './index';

test('seqLevel', () => {
  expect(seqLevel([1, 2, 3, 4, 5])).toBe('Linear');
  expect(seqLevel([2, 1, 0, -1, -2])).toBe('Linear');
  expect(seqLevel([3, 6, 10, 15, 21])).toBe('Quadratic');
  expect(seqLevel([4, 9, 16, 25, 36])).toBe('Quadratic');
  expect(seqLevel([7, 17, 31, 49, 71])).toBe('Quadratic');
  expect(seqLevel([2, 10, 26, 50, 82])).toBe('Quadratic');
  expect(seqLevel([-6, -4, 10, 42, 98, 184])).toBe('Cubic');
  expect(seqLevel([17, 59, 143, 287, 509, 827])).toBe('Cubic');
});
