<commit_before>'use strict';
var test = require('ava');
var claim = require('./');

test('.pass()', function (t) {
	claim.doesNotThrow(function () {
		claim.pass();
	});

	t.end();
});

test('.fail()', function (t) {
	claim.throws(function () {
		claim.fail();
	});

	t.end();
});

test('.ok()', function (t) {
	claim.throws(function () {
		claim.ok(0);
		claim.ok(false);
	});

	claim.doesNotThrow(function () {
		claim.ok(1);
		claim.ok(true);
	});

	t.end();
});

test('.notOk()', function (t) {
	claim.throws(function () {
		claim.notOk(1);
		claim.notOk(true);
	});

	claim.doesNotThrow(function () {
		claim.notOk(0);
		claim.notOk(false);
	});

	t.end();
});

test('should be true', function (t) {
	claim.true(true);
	t.end();
});

test('should be false', function (t) {
	claim.false(false);
	t.end();
});

test('should be equal', function (t) {
	claim.is('foo', 'foo');
	t.end();
});

test('should not be equal', function (t) {
	claim.not('foo', 'bar');
	t.end();
});

test('should be same', function (t) {
	claim.same({a: 'a'}, {a: 'a'});
	claim.same(['a', 'b'], ['a', 'b']);
	t.end();
});

test('should not be same', function (t) {
	claim.notSame({a: 'a'}, {a: 'b'});
	claim.notSame(['a', 'b'], ['c', 'd']);
	t.end();
});

test('should throw an error', function (t) {
	claim.throws(function () {
		claim.is('foo', 'bar');
	});

	t.end();
});

test('should not throw an error', function (t) {
	claim.doesNotThrow(function () {
		claim.is('foo', 'foo');
	});

	t.end();
});

test('should not be an error', function (t) {
	claim.error(false);
	t.end();
});

test('should match a regex', function (t) {
	claim.regexTest(/^abc$/, 'abc');
	t.end();
});

test('should be an error', function (t) {
	try {
		claim.ifError(new Error());
	} catch (err) {
		t.assert(err);
	}

	t.end();
});<commit_msg>improve test titles<commit_after>'use strict';
var test = require('ava');
var claim = require('./');

test('.pass()', function (t) {
	claim.doesNotThrow(function () {
		claim.pass();
	});

	t.end();
});

test('.fail()', function (t) {
	claim.throws(function () {
		claim.fail();
	});

	t.end();
});

test('.ok()', function (t) {
	claim.throws(function () {
		claim.ok(0);
		claim.ok(false);
	});

	claim.doesNotThrow(function () {
		claim.ok(1);
		claim.ok(true);
	});

	t.end();
});

test('.notOk()', function (t) {
	claim.throws(function () {
		claim.notOk(1);
		claim.notOk(true);
	});

	claim.doesNotThrow(function () {
		claim.notOk(0);
		claim.notOk(false);
	});

	t.end();
});

test('.true()', function (t) {
	claim.true(true);
	t.end();
});

test('.false()', function (t) {
	claim.false(false);
	t.end();
});

test('.is()', function (t) {
	claim.is('foo', 'foo');
	t.end();
});

test('.not()', function (t) {
	claim.not('foo', 'bar');
	t.end();
});

test('.same()', function (t) {
	claim.same({a: 'a'}, {a: 'a'});
	claim.same(['a', 'b'], ['a', 'b']);
	t.end();
});

test('.notSame()', function (t) {
	claim.notSame({a: 'a'}, {a: 'b'});
	claim.notSame(['a', 'b'], ['c', 'd']);
	t.end();
});

test('.throws()', function (t) {
	claim.throws(function () {
		claim.is('foo', 'bar');
	});

	t.end();
});

test('.doesNotThrow()', function (t) {
	claim.doesNotThrow(function () {
		claim.is('foo', 'foo');
	});

	t.end();
});

test('.regexTest()', function (t) {
	claim.regexTest(/^abc$/, 'abc');
	t.end();
});

test('.ifError()', function (t) {
	claim.throws(function () {
		claim.ifError(new Error());
	});

	t.end();
});
{'fraction_non_alphanumeric': 0.28863569967864444, 'fraction_numerical': 0.0023371311714869996, 'mean_word_length': 3.9839883551673947, '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': '7597099', 'n_tokens_mistral': 1432, 'n_tokens_neox': 1384, 'n_words': 267}