<commit_before>var should = require("should");
var collision = require("../geom-collision");

describe('lineCircle', function () {

    it('inside', function () {
        var i = collision.lineCircle(
            {x: 0, y: -2},
            {x: 0, y: 2},
            {x: 0, y: 0},
            4
        );

        i.should.not.equal(null);
        i.result.should.equal(collision.INSIDE);
        should.equal(i.entry, null);
        should.equal(i.exit, null);
    });

    it('outside', function () {
        var i = collision.lineCircle(
            {x: 5, y: -2},
            {x: 5, y: 2},
            {x: 0, y: 0},
            4
        );

        i.should.not.equal(null);
        i.result.should.equal(collision.OUTSIDE);
        should.equal(i.entry, null);
        should.equal(i.exit, null);
    });

    it('intersect', function () {
        var i = collision.lineCircle(
            {x: 3, y: -4},
            {x: 3, y: 4},
            {x: 0, y: 0},
            4
        );

        i.should.not.equal(null);
        i.result.should.equal(collision.INTERSECT);
        i.entry.should.not.equal(null);
        i.exit.should.not.equal(null);
    });
<commit_msg>exacted one of the line circle tests a bit<commit_after>var should = require("should");
var collision = require("../geom-collision");

describe('lineCircle', function () {

    it('inside', function () {
        var i = collision.lineCircle(
            {x: 0, y: -2},
            {x: 0, y: 2},
            {x: 0, y: 0},
            4
        );

        i.should.not.equal(null);
        i.result.should.equal(collision.INSIDE);
        should.equal(i.entry, null);
        should.equal(i.exit, null);
    });

    it('outside', function () {
        var i = collision.lineCircle(
            {x: 5, y: -2},
            {x: 5, y: 2},
            {x: 0, y: 0},
            4
        );

        i.should.not.equal(null);
        i.result.should.equal(collision.OUTSIDE);
        should.equal(i.entry, null);
        should.equal(i.exit, null);
    });

    it('intersect', function () {
        var i = collision.lineCircle(
            {x: 3, y: -4},
            {x: 3, y: 4},
            {x: 0, y: 0},
            4
        );

        i.should.not.equal(null);
        i.result.should.equal(collision.INTERSECT);
        i.entry.x.should.equal(3);
        i.entry.y.should.equal(2.6457513110645907);
        i.exit.x.should.equal(3);
        i.exit.y.should.equal(-2.6457513110645907);
    });

{'fraction_non_alphanumeric': 0.17280453257790368, 'fraction_numerical': 0.03156616754350466, 'mean_word_length': 1.5643153526970954, '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': '2728833', 'n_tokens_mistral': 905, 'n_tokens_neox': 835, 'n_words': 166}