<commit_before>import { HighScores } from './high-scores';

describe('High Scores Test Suite', () => {
  test('List of scores', () => {
    const input = [30, 50, 20, 70];
    expect(new HighScores(input).scores).toEqual([30, 50, 20, 70]);
  });

  xtest('Latest score', () => {
    const input = [100, 0, 90, 30];
    expect(new HighScores(input).latest).toEqual(30);
  });

  xtest('Personal best', () => {
    const input = [40, 100, 70];
    expect(new HighScores(input).personalBest).toEqual(100);
  });

  xtest('Personal top three from a list of scores', () => {
    const input = [10, 30, 90, 30, 100, 20, 10, 0, 30, 40, 40, 70, 70];
    expect(new HighScores(input).personalTopThree).toEqual([100, 90, 70]);
  });

  xtest('Personal top highest to lowest', () => {
    const input = [20, 10, 30];
    expect(new HighScores(input).personalTopThree).toEqual([30, 20, 10]);
  });

  xtest('Personal top when ther eis a tie', () => {
    const input = [40, 20, 40, 30];
    expect(new HighScores(input).personalTopThree).toEqual([40, 40, 30]);
  });

  xtest('Personal top when there are less than 3', () => {
    const input = [30, 70];
    expect(new HighScores(input).personalTopThree).toEqual([70, 30]);
  });

  xtest('Personal top when there is only one', () => {
    const input = [40];
    expect(new HighScores(input).personalTopThree).toEqual([40]);
  });
});<commit_msg>fix(exercises): Typo in high-scores (#818)<commit_after>import { HighScores } from './high-scores';

describe('High Scores Test Suite', () => {
  test('List of scores', () => {
    const input = [30, 50, 20, 70];
    expect(new HighScores(input).scores).toEqual([30, 50, 20, 70]);
  });

  xtest('Latest score', () => {
    const input = [100, 0, 90, 30];
    expect(new HighScores(input).latest).toEqual(30);
  });

  xtest('Personal best', () => {
    const input = [40, 100, 70];
    expect(new HighScores(input).personalBest).toEqual(100);
  });

  xtest('Personal top three from a list of scores', () => {
    const input = [10, 30, 90, 30, 100, 20, 10, 0, 30, 40, 40, 70, 70];
    expect(new HighScores(input).personalTopThree).toEqual([100, 90, 70]);
  });

  xtest('Personal top highest to lowest', () => {
    const input = [20, 10, 30];
    expect(new HighScores(input).personalTopThree).toEqual([30, 20, 10]);
  });

  xtest('Personal top when there is a tie', () => {
    const input = [40, 20, 40, 30];
    expect(new HighScores(input).personalTopThree).toEqual([40, 40, 30]);
  });

  xtest('Personal top when there are less than 3', () => {
    const input = [30, 70];
    expect(new HighScores(input).personalTopThree).toEqual([70, 30]);
  });

  xtest('Personal top when there is only one', () => {
    const input = [40];
    expect(new HighScores(input).personalTopThree).toEqual([40]);
  });
});
{'fraction_non_alphanumeric': 0.19600142806140664, 'fraction_numerical': 0.07818636201356659, 'mean_word_length': 3.717171717171717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4614163', 'n_tokens_mistral': 1168, 'n_tokens_neox': 943, 'n_words': 256}