<commit_before>function namedTestSuite() {
	function setUp() {}
	function tearDown() {}
	function testNamedPass1() {}
	function testNamedPass2() {}
	function testNamedFail() { throw "fail"; }
}

var anonymousTestSuite = function () {
	function setUp() {}
	function tearDown() {}
	function testAnonymousPass1() {}
	function testAnonymousPass2() {}
	function testAnonymousFail() { throw "fail"; }
};

var objectTestSuite = {
	setUp: function () {},
	tearDown: function () {},
	testObjectPass1: function () {},
	testObjectPass2: function () {},
	testObjectFail: function () { throw "fail"; }
};

var arrayTestSuite = [
	"testArrayPass1",
	"testArrayPass2",
	"testArrayFail"
	];

var stringTestSuite = "\
		function setUp() {}\
		function tearDown() {}\
		function testStringPass1() {}\
		function testStringPass2() {}\
		function testStringFail() { throw \"fail\"; }\
	";

function jsUnityTestSuite() {
	function setUp() {
		origLog = jsUnity.log;
		jsUnity.log = function () {};
	}

	function tearDown() {
		jsUnity.log = origLog;
		delete origLog;
	}

	function testRunFunctionNamed() {
		var results = jsUnity.run(namedTestSuite);
		assertEquals(3, results.total);
		assertEquals(2, results.passed);
		assertEquals(1, results.failed);
	} 

	function testRunFunctionAnonymous() {
		var results = jsUnity.run(anonymousTestSuite);
		assertEquals(3, results.total);
		assertEquals(2, results.passed);
		assertEquals(1, results.failed);
	} 

	function testRunArray() {
		var results = jsUnity.run(arrayTestSuite);
		assertFalse(results);
	} 

	function testRunObject() {
		var results = jsUnity.run(objectTestSuite);
		assertFalse(results);
	} <commit_msg>Added more core test cases<commit_after>function namedTestSuite() {
	function setUp() {}
	function tearDown() {}
	function testNamedPass1() {}
	function testNamedPass2() {}
	function testNamedFail() { throw "fail"; }
}

var anonymousTestSuite = function () {
	function setUp() {}
	function tearDown() {}
	function testAnonymousPass1() {}
	function testAnonymousPass2() {}
	function testAnonymousFail() { throw "fail"; }
};

var objectTestSuite = {
	setUp: function () {},
	tearDown: function () {},
	testObjectPass1: function () {},
	testObjectPass2: function () {},
	testObjectFail: function () { throw "fail"; }
};

var arrayTestSuite = [
	"testArrayPass1",
	"testArrayPass2",
	"testArrayFail"
	];

var stringTestSuite = "\
		function setUp() {}\
		function tearDown() {}\
		function testStringPass1() {}\
		function testStringPass2() {}\
		function testStringFail() { throw \"fail\"; }\
	";

function jsUnityTestSuite() {
	function setUp() {
		origLog = jsUnity.log;
		jsUnity.log = function () {};
	}

	function tearDown() {
		jsUnity.log = origLog;
		delete origLog;
	}

	function testSetUp() {
		// todo
	}
	
	function testTearDown() {
		// todo
	}

	function testLog() {
		// todo
	}

	function testError() {
		// todo
	}

	function testRunFunctionNamed() {
		var results = jsUnity.run(namedTestSuite);
		//assertEquals("namedTestSuite", results.name);
		assertEquals(3, results.total);
		assertEquals(2, results.passed);
		assertEquals(1, results.failed);
	} 

	function testRunFunctionAnonymous() {
		var results = jsUnity.run(anonymousTestSuite);
		assertEquals(3, results.total);
		assertEquals(2, results.passed);
		assertEquals(1, results.failed);
	} 

	function testRunArray() {
		var results = jsUnity.run(arrayTestSuite);
		assertFalse(results);
	} 

	function testRunObject() {
		var results = jsUnity.run(objectTestSuite);
		assertFalse(results);
	} 
{'fraction_non_alphanumeric': 0.1452117078715544, 'fraction_numerical': 0.009093492469451549, 'mean_word_length': 4.560821484992101, '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': '6322650', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1109, 'n_words': 238}