<commit_before>require('should');

var roller = require('../lib/roller.js');

describe('leafRoller', function() {
    describe('with one die', function() {
        it('returns a number', function() {
            roller(1,6).roll().should.be.a.Number;
        });

        it('is in range', function() {
            roller(1,6).roll().should.be.within(1, 6);
        });

        it('can be specified by one number (sides)', function() {
            roller(2).roll().should.be.within(1, 2);
        });

        it('can handle an array of dice faces', function() {
            roller([-1, 0, 1]).roll().should.be.within(-1, 1);
        });
    });

    describe('with multiple dice', function() {
        it('returns an array', function() {
            roller(2,8).roll().should.be.an.Array;<commit_msg>Correct name<commit_after>require('should');

var roller = require('../lib/roller.js');

describe('roller', function() {
    describe('with one die', function() {
        it('returns a number', function() {
            roller(1,6).roll().should.be.a.Number;
        });

        it('is in range', function() {
            roller(1,6).roll().should.be.within(1, 6);
        });

        it('can be specified by one number (sides)', function() {
            roller(2).roll().should.be.within(1, 2);
        });

        it('can handle an array of dice faces', function() {
            roller([-1, 0, 1]).roll().should.be.within(-1, 1);
        });
    });

    describe('with multiple dice', function() {
        it('returns an array', function() {
            roller(2,8).roll().should.be.an.Array;
{'fraction_non_alphanumeric': 0.19637273295809882, 'fraction_numerical': 0.020012507817385866, 'mean_word_length': 2.2653061224489797, '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': '4252413', 'n_tokens_mistral': 511, 'n_tokens_neox': 470, 'n_words': 104}