<commit_before>const tape = require('tape');
const t9e = require('../');

/**
 * board() Method
 * =============================================================================
 */

tape('board()', assert => {
    assert.plan(11);

    assert.equal(
        typeof t9e.board,
        'function',
        'Should be a function.'
    );

    assert.deepEqual(
        t9e.board(),
        [[0, 1, 2], [0, 1, 2], [0, 1, 2]],
        'Should produce a square array of size 3 given no parameters.'
    );

    assert.deepEqual(
        t9e.board(undefined),
        [[0, 1, 2], [0, 1, 2], [0, 1, 2]],
        'Should produce a square array of size 3 given a falsy size.'
    );

    assert.deepEqual(
        t9e.board('ponies'),
        [[0, 1, 2], [0, 1, 2], [0, 1, 2]],
        'Should produce a square array of size 3 given an invalid size.'
    );

    assert.deepEqual(
        t9e.board(0),
        [],
        'Should produce an empty array given size 0.'
    );

    assert.deepEqual(
        [[0]],
        t9e.board(1),
        'Should produce a square array of size 1.'
    );

    assert.deepEqual(
        t9e.board(2),
        [[0, 1], [0, 1]],
        'Should produce a square array of size 2.'
    );

    assert.deepEqual(
        t9e.board(3),
        [[0, 1, 2], [0, 1, 2], [0, 1, 2]],
        'Should produce a square array of size 3'
    );

    assert.deepEqual(
        t9e.board(undefined, '-'),
        [['-', '-', '-'], ['-', '-', '-'], ['-', '-', '-']],
        'Should produce a square array of size 3 prepopulated with dashes.'
    );

    assert.deepEqual(
        t9e.board(1, '-'),
        [['-']],
        'Should produce a square array of size 1 prepopulated with dashes.'
    );

    assert.deepEqual(
        t9e.board(1, '-'),
        [['-']],
        'Should produce a square array of size 2 prepopulated with dashes.'
    );
});

/**
 * test() Method
 * =============================================================================
 */


tape('check()', assert => {
    assert.plan(1);

    assert.equal(
        typeof t9e.check,
        'function',
        'Should be a function.'
    );
});

/**
 * anyEmpty() Method
 * =============================================================================
 */


tape('check()', assert => {
    assert.plan(1);

    assert.equal(
        typeof t9e.anyEmpty,
        'function',
        'Should be a function.'
    );
});<commit_msg>Removed extra whitespace.<commit_after>const tape = require('tape');
const t9e = require('../');

/**
 * board() Method
 * =============================================================================
 */

tape('board()', assert => {
    assert.plan(11);

    assert.equal(
        typeof t9e.board,
        'function',
        'Should be a function.'
    );

    assert.deepEqual(
        t9e.board(),
        [[0, 1, 2], [0, 1, 2], [0, 1, 2]],
        'Should produce a square array of size 3 given no parameters.'
    );

    assert.deepEqual(
        t9e.board(undefined),
        [[0, 1, 2], [0, 1, 2], [0, 1, 2]],
        'Should produce a square array of size 3 given a falsy size.'
    );

    assert.deepEqual(
        t9e.board('ponies'),
        [[0, 1, 2], [0, 1, 2], [0, 1, 2]],
        'Should produce a square array of size 3 given an invalid size.'
    );

    assert.deepEqual(
        t9e.board(0),
        [],
        'Should produce an empty array given size 0.'
    );

    assert.deepEqual(
        [[0]],
        t9e.board(1),
        'Should produce a square array of size 1.'
    );

    assert.deepEqual(
        t9e.board(2),
        [[0, 1], [0, 1]],
        'Should produce a square array of size 2.'
    );

    assert.deepEqual(
        t9e.board(3),
        [[0, 1, 2], [0, 1, 2], [0, 1, 2]],
        'Should produce a square array of size 3'
    );

    assert.deepEqual(
        t9e.board(undefined, '-'),
        [['-', '-', '-'], ['-', '-', '-'], ['-', '-', '-']],
        'Should produce a square array of size 3 prepopulated with dashes.'
    );

    assert.deepEqual(
        t9e.board(1, '-'),
        [['-']],
        'Should produce a square array of size 1 prepopulated with dashes.'
    );

    assert.deepEqual(
        t9e.board(1, '-'),
        [['-']],
        'Should produce a square array of size 2 prepopulated with dashes.'
    );
});

/**
 * test() Method
 * =============================================================================
 */

tape('check()', assert => {
    assert.plan(1);

    assert.equal(
        typeof t9e.check,
        'function',
        'Should be a function.'
    );
});

/**
 * anyEmpty() Method
 * =============================================================================
 */

tape('check()', assert => {
    assert.plan(1);

    assert.equal(
        typeof t9e.anyEmpty,
        'function',
        'Should be a function.'
    );
});
{'fraction_non_alphanumeric': 0.26044683491932147, 'fraction_numerical': 0.03103020273065784, 'mean_word_length': 2.0914322250639388, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1297943', 'n_tokens_mistral': 1595, 'n_tokens_neox': 1470, 'n_words': 414}