64 "Validate SDL_SetClipboardText result, expected 0, got %i",
68 "Verify SDL_SetClipboardText did not modify input string, expected '%s', got '%s'",
102 "Verify result from SDL_SetClipboardText(NULL), expected 0, got %i",
111 "Verify SDL_HasClipboardText returned SDL_FALSE, got %s",
112 (boolResult) ?
"SDL_TRUE" :
"SDL_FALSE");
120 "Verify SDL_GetClipboardText did not return NULL");
122 charResult[0] ==
'\0',
123 "Verify SDL_GetClipboardText returned string with length 0, got length %i",
129 "Verify result from SDL_SetClipboardText(NULL), expected 0, got %i",
133 "Verify SDL_SetClipboardText did not modify input string, expected '%s', got '%s'",
139 "Verify SDL_HasClipboardText returned SDL_TRUE, got %s",
140 (boolResult) ?
"SDL_TRUE" :
"SDL_FALSE");
146 "Verify SDL_GetClipboardText returned correct string, expected '%s', got '%s'",
147 textRef, charResult);
int clipboard_testHasClipboardText(void *arg)
Check call to SDL_HasClipboardText.
void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(1)
Explicitly pass without checking an assertion condition. Updates assertion counter.
int clipboard_testClipboardTextFunctions(void *arg)
End-to-end test of SDL_xyzClipboardText functions.
SDLTest_TestSuiteReference clipboardTestSuite
static const SDLTest_TestCaseReference clipboardTest4
int(* SDLTest_TestCaseFp)(void *arg)
#define SDL_GetClipboardText
char * SDLTest_RandomAsciiString(void)
int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(2)
Assert for test cases that logs but does not break execution flow on failures. Updates assertion coun...
int clipboard_testSetClipboardText(void *arg)
Check call to SDL_SetClipboardText.
static const SDLTest_TestCaseReference clipboardTest1
static char text[MAX_TEXT_LENGTH]
#define SDL_HasClipboardText
static const SDLTest_TestCaseReference clipboardTest2
int clipboard_testGetClipboardText(void *arg)
Check call to SDL_GetClipboardText.
static const SDLTest_TestCaseReference * clipboardTests[]
#define SDL_SetClipboardText
static const SDLTest_TestCaseReference clipboardTest3