void TestIndexTreeMemory(void)
{
	BeginTests();
	FastFunctionsInit();
	MemoryInit();

	TestIndexTreeMemoryKill();
	TestIndexTreeMemoryAdd();
	TestIndexTreeMemoryGet();
	TestIndexTreeMemoryPutPtrDuplicate();
	TestIndexTreeMemoryPutDifferenceSizeDuplicates();
	TestIndexTreeMemoryValidateInternalConsistency();
	TestIndexTreeMemoryCountAllocatedNodes();
	TestIndexTreeMemoryRemoveResize();
	TestIndexTreeMemoryRemoveByObject();
	TestIndexTreeMemoryHasKey();
	TestIndexTreeMemoryRemoveNullNode();
	TestIndexTreeMemoryAddLongLong();
	TestIndexTreeMemoryIterate();
	TestIndexTreeMemoryReadWrite();
	TestIndexTreeMemoryRemoveOnRoot();
	TestIndexTreeMemoryResizeData();

	MemoryKill();
	FastFunctionsKill();
	TestStatistics();
}
void TestTriangleShape(void)
{
	BeginTests();
	FastFunctionsInit();


	FastFunctionsKill();
	TestStatistics();
}
void TestChunkFileFile(void)
{
	BeginTests();
	FastFunctionsInit();

	TestChunkFileFileRead();

	FastFunctionsKill();
	TestStatistics();
}
Ejemplo n.º 4
0
void TestTrackingAllocator(void)
{
	BeginTests();
	FastFunctionsInit();

	TestTrackingAllocatorSize();

	FastFunctionsKill();
	TestStatistics();
}
Ejemplo n.º 5
0
int FAR PASCAL WinMain(HINSTANCE hInstance,	HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
	InitTotalStatistics();
	InitEmptyString();
	FastFunctionsInit();

	TestStackPointers();
	TestClass();
	TestClassStorage();
	TestUnknowns();
	TestArrayUnknown();
	TestSetUnknown();
	TestArrayType();
	TestSetType();
	TestMapStringUnknown();
	TestEvent();
	TestActionEvent();
	TestExternalChannels();
	TestExternalChannelPadder();
	TestChannels();
	TestChannelsAccessor();
	TestSingleChannelAccessor();
	TestChunkFileNames();
	TestParameters();
	TestDistToRoot();
	TestDistToStack();
	TestObjectsSimple();
	TestRoot();
	TestObject();
	TestPointer();
	TestArrayCommonObject();
	TestNamedObject();
	TestObjectAllocator();
	TestObjectWriterChunked();
	TestObjectGraphSerialiser();
	TestObjectReaderSimple();
	TestObjectReaderChunked();
	TestObjectStackPointers();
	TestNamedIndexes();
	TestObjectGraphDeserialiser();
	TestObjectConverter();
	TestObjects();
	TestDehollowfication();
	TestUsage();
	TestArray();
	TestSet();
	TestKill();
	TestEmbedded();
	TestEmbeddedObjectRemapTos();

	FastFunctionsKill();
	KillEmptyString();
	return TestTotalStatistics();
}
Ejemplo n.º 6
0
void TestDurableSet(void)
{
	FastFunctionsInit();
	TypeConverterInit();
	BeginTests();

	TestDurableSetAdd();

	TestStatistics();
	FastFunctionsKill();
	TypeConverterKill();
}
void TestArrayEmbedded(void)
{
	BeginTests();
	FastFunctionsInit();

	TestArrayEmbeddedAdd();
	TestArrayEmbeddedRemoveAt();
	TestArrayEmbeddedRemove();

	FastFunctionsKill();
	TestStatistics();
}
Ejemplo n.º 8
0
void TestIndexes(void)
{
	FastFunctionsInit();
	BeginTests();

	TestIndexesSomething();
	TestIndexesIteration();
	TestIndexesAddAndRemove();
	
	TestStatistics();
	FastFunctionsKill();
}
Ejemplo n.º 9
0
int main(int argc, _TCHAR* argv[])
{
	CFileUtil		cFileUtil;

	InitTotalStatistics();

	FastFunctionsInit();
	TypesInit();
	TypeConverterInit();
	UnknownsInit();

	cFileUtil.MakeDir("Output");

	TestImage();
	TestImageColour();
	TestImageImport();
	TestImageReader();
	TestImageWriter();
	TestImageGreyToRGB();
	TestImageRGBToGrey();
	TestImageDivider();
	TestBumpMapper();
	TestPlainTextEditor();
	TestImageCel();
	TestRectangleBestPacker();
	TestRectanglePow2Packer();
	TestImageModifierStack();
	TestImageDrawBox();
	TestImageRecolour();
	TestImageSwizzle();
	TestImageCombiner();
	//TestWinText();
	//TestImageCelsSource();
	//TestHalfSpace();
	//TestPolygon();
	//TestSphereShape();
	//TestTriangleShape();
	//TestMeshFaceReturn();
	//TestMeshPolygons();
	//TestMeshShapes();
	//TestMeshConnectivity();
	//TestNormalGeneration();
	//TestMeshOBJReader();

	cFileUtil.RemoveDir("Output");

	UnknownsKill();
	TypeConverterKill();
	TypesKill();
	FastFunctionsKill();
	return TestTotalStatistics();
}
Ejemplo n.º 10
0
void TestArrayInt(void)
{
	BeginTests();
	FastFunctionsInit();

	TestArrayIntAddFind();
	TestArrayIntSorting();
	TestArrayIntRemoveDuplicates();
	TestArrayIntRemoveAt();

	FastFunctionsKill();
	TestStatistics();
}
void TestArrayTemplateEmbedded(void)
{
	BeginTests();
	FastFunctionsInit();

	TestArrayTemplateEmbeddedAdd();
	TestArrayTemplateEmbeddedRemoveAt();
	TestArrayTemplateEmbeddedRemove();
	TestArrayTemplateEmbeddedSizeof();
	TestArrayTemplateEmbeddedAllocationWithVirtualClass();

	FastFunctionsKill();
	TestStatistics();
}
Ejemplo n.º 12
0
void TestFileSystem(void)
{
	BeginTests();
	FastFunctionsInit();

	TestFileSystemInit();
	TestFileSystemNearest();
	TestFileSystemFindExtension();
	TestFileSystemGetFiles();
	TestFileSystemIterator();

	FastFunctionsKill();
	TestStatistics();
}
Ejemplo n.º 13
0
void TestChunkFile(void)
{
	BeginTests();
	FastFunctionsInit();
	MemoryInit();
	
	TestChunkFileSimple();
	TestChunkFileMD5ing();
	TestChunkFileNameing();

	MemoryKill();
	FastFunctionsKill();
	TestStatistics();
}
Ejemplo n.º 14
0
void TestMemoryCache(void)
{
	BeginTests();
	FastFunctionsInit();

	TestMemoryCacheSimple();
	TestMemoryCacheBrokenExample();
	TestMemoryCacheEvictAll();
	TestMemoryCacheEvictLeftmost();
	TestMemoryCacheEvictRightmost();

	FastFunctionsKill();
	TestStatistics();
}
Ejemplo n.º 15
0
void TestPackFilesPacker(void)
{
	BeginTests();

	FastFunctionsInit();
	MemoryInit();

	TestPackFilesPackerSimple();
	TestPackFilesPackerCopyDir();

	MemoryKill();
	FastFunctionsKill();

	TestStatistics();
}
Ejemplo n.º 16
0
void TestMapBlock(void)
{
	BeginTests();
	MemoryInit();
	FastFunctionsInit();

	TestMapBlockInternals();
	TestMapBlockGet();
	TestMapBlockAddDuplicate();
	TestMapBlockRemove();
	TestMapBlockReadWrite();

	FastFunctionsKill();
	MemoryKill();
	TestStatistics();
}
Ejemplo n.º 17
0
void TestArrayTemplate(void)
{
	BeginTests();
	MemoryInit();
	FastFunctionsInit();

	TestMisc();
	TestArrayAllocation();
	TestArrayCopy();
	TestArraySorting();
	TestArrayRemove();
	TestArrayFake();

	FastFunctionsKill();
	MemoryKill();
	TestStatistics();
}
Ejemplo n.º 18
0
void TestFileUtil(void)
{
	BeginTests();
	MemoryInit();
	FastFunctionsInit();

	TestFileUtilRemoveExtension();
	TestFileUtilFindExtension();
	TestFileUtilNaming();
	TestFileUtilMisc();
	TestFileUtilMakeNameFromDirectory();
	TestFileUtilMakeDirectory();
	TestFileUtilRemoveLastFromPath();
	TestFileUtilTouchDirectory();
	TestFileUtilPrependToPath();

	FastFunctionsKill();
	MemoryKill();
	TestStatistics();
}
Ejemplo n.º 19
0
void TestFiles(void)
{
	BeginTests();
	
	FastFunctionsInit();
	TypeConverterInit();
	MemoryInit();

	TestFilesSimple();
	TestFileSystemIteration();
	TestFilesIteration();
	TestGetFileNames();
	TestFilesWholeDirectory();

	MemoryKill();
	FastFunctionsKill();
	TypeConverterKill();

	TestStatistics();
}
Ejemplo n.º 20
0
void TestLogFile(void)
{
	BeginTests();

	FastFunctionsInit();
	TypeConverterInit();

	TestLogFileOpen();
	TestLogFileRead();
	TestLogFileWrite();
	TestLogFileFindHoles();
	TestLogFileCommandsSimple();
	TestLogFileCommandsComplex();
	TestLogFileDelete();
	TestLogFileMultipleReadsAfterOpens();

	FastFunctionsKill();
	TypeConverterKill();

	TestStatistics();
}