66 expected =
"1.000000";
84 expected =
"1.333333";
90 expected =
"+1.333333";
115 SDLTest_AssertPass(
"Call to SDL_snprintf(\"%%06.2f\", 1.0 + 1.0 / 3.0) with buffer size 5");
128 const int nameLen = 16;
144 name[nameLen] =
'\0';
171 "Verify returned text, expected: %s, got: %s",
190 "Verify returned text, expected: %s, got: %s",
209 "Verify returned text, expected: %s, got: %s",
228 "Verify returned text, expected: %s, got: %s",
234 for (overwrite=0; overwrite <= 1; overwrite++) {
268 expected_output =
output = 123;
269 expected_result = -1;
275 expected_output =
output = 123;
GLuint const GLchar * name
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 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...
Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max)
char * SDLTest_RandomAsciiStringOfSize(int size)
int(* SDLTest_TestCaseFp)(void *arg)
void SDLTest_Log(SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(1)
Prints given message with a timestamp in the TEST category and INFO priority.
int stdlib_getsetenv(void *arg)
Call to SDL_getenv and SDL_setenv.
static const SDLTest_TestCaseReference stdlibTest3
static const SDLTest_TestCaseReference * stdlibTests[]
int stdlib_snprintf(void *arg)
Call to SDL_snprintf.
int stdlib_sscanf(void *arg)
Call to SDL_sscanf.
static const SDLTest_TestCaseReference stdlibTest4
static const SDLTest_TestCaseReference stdlibTest1
SDLTest_TestSuiteReference stdlibTestSuite
int stdlib_strlcpy(void *arg)
Call to SDL_strlcpy.
static const SDLTest_TestCaseReference stdlibTest2
static char text[MAX_TEXT_LENGTH]