<commit_before>{

	const

		warble = require('./warble'),

		emptyArray = [],

		emptyObject = {},

		emptyString = '';

	test('warble.type', () => {

		expect(warble.type(emptyArray)).toBe('array');

		expect(warble.type(emptyObject)).toBe('object');

		expect(warble.type(emptyString)).toBe('string');

	});

	test('warble.is', () => {

		var value = '-1';

		expect(warble.is(value, 'number')).toBe(false);

		expect(warble.is(value, 'string')).toBe(true);

		expect(warble.is(value, ['numeric', 'negative'])).toBe(true);

		expect(warble.is(value, ['numeric', 'positive'])).toBe(false);
<commit_msg>Add all types to tests.<commit_after>{

	const

		warble = require('./warble'),

		emptyArray = [],

		emptyObject = {},

		emptyString = '',

		currentDate = new Date;

	test('warble.type', () => {

		expect(emptyArray).toBe('array');

		expect(true).toBe('boolean');

		expect(currentDate).toBe('date');

		expect().toBe('error');

		expect().toBe('function');

		expect().toBe('number');

		expect(emptyObject).toBe('object');

		expect().toBe('regExp');

		expect(emptyString).toBe('string');

		expect().toBe('symbol');

	});

	test('warble.is', () => {

		var value = '-1';

		expect(warble.is(value, 'number')).toBe(false);

		expect(warble.is(value, 'string')).toBe(true);

		expect(warble.is(value, ['numeric', 'negative'])).toBe(true);

		expect(warble.is(value, ['numeric', 'positive'])).toBe(false);

{'fraction_non_alphanumeric': 0.23745583038869258, 'fraction_numerical': 0.0014134275618374558, 'mean_word_length': 4.6414342629482075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2918768', 'n_tokens_mistral': 540, 'n_tokens_neox': 469, 'n_words': 64}