<commit_before>"use strict";

var tester = require('./_lib/tester');
var Verifier = require('./_lib/lib');

exports.examples = tester([
	{
		rules: 'format 3',
		value: 4,
		expect: false
	},
	{
		rules: 'format 3',
		value: 3,
		expect: true
	},
	{
		rules: 'format 3',
		value: 433,
		expect: true
	},
	{
		rules: 'format ^3',
		value: 433,
		expect: false
	},
	{
		rules: 'format ^3',
		value: 33,
		expect: true
	},
	{
		rules: 'format ^3$',
		value: 3,
		expect: true
	},
	{
		rules: 'format ^3$',
		value: 33,
		expect: false
	},
	{
		rules: 'format ^[a-zA-Z][a-zA-Z0-9_.-]*@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$',
		value: 33,
		expect: false
	},
	{
		rules: 'format ^[a-zA-Z][a-zA-Z0-9_.-]*@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$',
		value: "asdasdasd",
		expect: false
	},
	{
		rules: 'format ^[a-zA-Z][a-zA-Z0-9_.-]*@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$',<commit_msg>add error check for rule-format test<commit_after>"use strict";

var tester = require('./_lib/tester');
var Verifier = require('./_lib/lib');

exports.examples = tester([
	{
		rules: 'format 3',
		value: 4,
		verr: {
			rule: 'format',
			params: '3',
			index: null
		}
	},
	{
		rules: 'format 3',
		value: 3,
		expect: true
	},
	{
		rules: 'format 3',
		value: 433,
		expect: true
	},
	{
		rules: 'format ^3',
		value: 433,
		verr: {
			rule: 'format',
			params: '^3',
			index: null
		}
	},
	{
		rules: 'format ^3',
		value: 33,
		expect: true
	},
	{
		rules: 'format ^3$',
		value: 3,
		expect: true
	},
	{
		rules: 'format ^3$',
		value: 33,
		verr: {
			rule: 'format',
			params: '^3$',
			index: null
		}
	},
	{
		rules: 'format ^[a-zA-Z][a-zA-Z0-9_.-]*@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$',
		value: 33,
		verr: {
			rule: 'format',
			params: '^[a-zA-Z][a-zA-Z0-9_.-]*@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$',
			index: null
		}
	},
	{
		rules: 'format ^[a-zA-Z][a-zA-Z0-9_.-]*@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$',
		value: "asdasdasd",
		verr: {
			rule: 'format',
			params: '^[a-zA-Z][a-zA-Z0-9_.-]*@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$',
			index: null
		}
	},
	{
		rules: 'format ^[a-zA-Z][a-zA-Z0-9_.-]*@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$',
{'fraction_non_alphanumeric': 0.2710144927536232, 'fraction_numerical': 0.04589371980676329, 'mean_word_length': 2.528109028960818, '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': '5963315', 'n_tokens_mistral': 1199, 'n_tokens_neox': 1039, 'n_words': 181}