function formatParseValidate(assert, sTypeName, oConstraints, oTestDate) {
		var oType = createInstance(sTypeName, oConstraints),
			sFormattedDate = oType.formatValue(oTestDate, "string"),
			oResultingDate = oType.parseValue(sFormattedDate, "string");

		oType.validateValue(oResultingDate);
		assert.deepEqual(oResultingDate, oTestDate, "format and parse did not change the date");
	}
/*
	 * Tests that format and parse do not change the date and that validate accepts it.
	 */
Tests that format and parse do not change the date and that validate accepts it.
Tests that format and parse do not change the date and that validate accepts it .
function formatParseValidate(assert, sTypeName, oConstraints, oTestDate) {
		var oType = createInstance(sTypeName, oConstraints),
			sFormattedDate = oType.formatValue(oTestDate, "string"),
			oResultingDate = oType.parseValue(sFormattedDate, "string");
		oType.validateValue(oResultingDate);
		assert.deepEqual(oResultingDate, oTestDate, "format and parse did not change the date");
	}
function formatParseValidate ( assert , sTypeName , oConstraints , oTestDate ) { var oType = createInstance ( sTypeName , oConstraints ) , sFormattedDate = oType . formatValue ( oTestDate , "string" ) , oResultingDate = oType . parseValue ( sFormattedDate , "string" ) ; oType . validateValue ( oResultingDate ) ; assert . deepEqual ( oResultingDate , oTestDate , "format and parse did not change the date" ) ; }
Tests that format and parse do not change the date and that validate accepts it.
Tests that format and parse do not change the date and that validate accepts it .