<commit_before>const chai = require('chai');
const assert = chai.assert;

const Fish = require('../lib/fish')
const Bullet = require('../lib/bullet')
const Boat = require('../lib/boat')
const collision = require('../lib/collision')

describe('Collision detection', function() {
  context('between a bullet and a fish', function() {
    var boat = new Boat({});

    it('detects a collision', function() {
      var fish = new Fish({x: 500, y: 100});
      var bullet = new Bullet({}, boat);
      bullet.shoot(700);
      bullet.x = 500;
      bullet.y = 100;
      console.log(fish)
      console.log(bullet)

      assert.equal(true, collision(fish, bullet))
    });

    it('returns false if x coordinates do not match', function() {
      var fish = new Fish({x: 500, y: 100});<commit_msg>Importing fish defaults into collision test<commit_after>const chai = require('chai');
const assert = chai.assert;

const Fish = require('../lib/fish').Fish;
const Bullet = require('../lib/bullet');
const Boat = require('../lib/boat');
const collision = require('../lib/collision');

describe('Collision detection', function() {
  context('between a bullet and a fish', function() {
    var boat = new Boat({});

    it('detects a collision', function() {
      var fish = new Fish({x: 500, y: 100});
      var bullet = new Bullet({}, boat);
      bullet.shoot(700);
      bullet.x = 500;
      bullet.y = 100;
      console.log(fish)
      console.log(bullet)

      assert.equal(true, collision(fish, bullet))
    });

    it('returns false if x coordinates do not match', function() {
      var fish = new Fish({x: 500, y: 100});
{'fraction_non_alphanumeric': 0.16676923076923078, 'fraction_numerical': 0.025846153846153845, 'mean_word_length': 3.201550387596899, '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': '1423038', 'n_tokens_mistral': 536, 'n_tokens_neox': 476, 'n_words': 152}