Пример #1
0
int main(int, char**)
{
	testInts();
	testStrings();
	testIntsAndStrings();

	return 0;
}
Пример #2
0
int main()
{
	testInts();
	testStrings();

	#ifdef _WIN32
	if (_CrtDumpMemoryLeaks()) {
		cout << "Memory leaks!" << endl;
	}
	#endif

	char c;
	cin >> c;
	return 0;
}
Пример #3
0
int main( void ) {
    string result;

    testInts();
    testFloats();
    testBools();
    testStrings();
    testCStrings(); 

    result = tests_failed 
                ? "FAILURE"
                : "SUCCESS";

    printf( "\ntotal: %d\npassed: %d\nfailed: %d\n", tests_total, tests_passed, tests_failed );
    printf( "\nTest results: %s\n\n", result.c_str() );

    /* exit status 0 if nothing failed */
    return tests_failed;
}