SDLTest_AssertCheck(written_size<=size,"Output length is within expected bounds, with length %d: wrote %d of %d permitted bytes",size,written_size,size);
if(size>=33){
SDLTest_AssertCheck(SDL_strcmp(guid_str,test_guids[i].str)==0,"GUID string equality, from string: %s",test_guids[i].str);
}
}
}
returnTEST_COMPLETED;
}
/* ================= Test References ================== */
/* GUID routine test cases */
staticconstSDLTest_TestCaseReferenceguidTest1={
(SDLTest_TestCaseFp)TestGuidFromString,"TestGuidFromString","Call to SDL_GUIDFromString",TEST_ENABLED
};
staticconstSDLTest_TestCaseReferenceguidTest2={
(SDLTest_TestCaseFp)TestGuidToString,"TestGuidToString","Call to SDL_GUIDToString",TEST_ENABLED