<commit_before>require 'knight'

describe Knight do
  describe 'MOVEMENTS constant' do
    it 'is not nil' do
      m = described_class::MOVEMENTS
      expect(m).to contain_exactly([-2, -1], [-2, 1], [-1, -2], [-1, 2], 
                                   [1, -2], [1, 2], [2, -1], [2, 1])
    end
  end

  describe '#possible_moves' do
    context 'when current_location is [0, 0]' do
      it 'has 20 possible moves' do
        b = Board.new(size: 3)
        k = described_class.new(board: b)
        moves = k.possible_moves
        expect(moves).to eq([[1, 2], [2, 1]])
      end
    end
  end

end<commit_msg>Fix error on knight_spec.rb<commit_after>require 'knight'

describe Knight do
  describe 'MOVEMENTS constant' do
    it 'is contains the correct coordinates' do
      m = described_class::MOVEMENTS
      expect(m).to contain_exactly([-2, -1], [-2, 1], [-1, -2], [-1, 2], 
                                   [1, -2], [1, 2], [2, -1], [2, 1])
    end
  end

  describe '#possible_moves' do
    context 'when current_location is [0, 0]' do
      it 'has 2 possible moves' do
        b = Board.new(size: 3)
        k = described_class.new(board: b)
        moves = k.possible_moves
        expect(moves).to eq([[1, 2], [2, 1]])
      end
    end
  end

end
{'fraction_non_alphanumeric': 0.146129541864139, 'fraction_numerical': 0.038704581358609796, 'mean_word_length': 2.0677966101694913, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1833134', 'n_tokens_mistral': 472, 'n_tokens_neox': 445, 'n_words': 140}