Home | History | Annotate | Download | only in test

Lines Matching refs:SDL_snprintf

40  * @brief Call to SDL_snprintf
42 #undef SDL_snprintf
50 result = SDL_snprintf(text, sizeof(text), "%s", "foo");
52 SDLTest_AssertPass("Call to SDL_snprintf(\"%%s\", \"foo\")");
56 result = SDL_snprintf(text, 2, "%s", "foo");
58 SDLTest_AssertPass("Call to SDL_snprintf(\"%%s\", \"foo\") with buffer size 2");
62 result = SDL_snprintf(NULL, 0, "%s", "foo");
65 result = SDL_snprintf(text, sizeof(text), "%f", 1.0);
67 SDLTest_AssertPass("Call to SDL_snprintf(\"%%f\", 1.0)");
71 result = SDL_snprintf(text, sizeof(text), "%.f", 1.0);
73 SDLTest_AssertPass("Call to SDL_snprintf(\"%%.f\", 1.0)");
77 result = SDL_snprintf(text, sizeof(text), "%#.f", 1.0);
79 SDLTest_AssertPass("Call to SDL_snprintf(\"%%#.f\", 1.0)");
83 result = SDL_snprintf(text, sizeof(text), "%f", 1.0 + 1.0 / 3.0);
85 SDLTest_AssertPass("Call to SDL_snprintf(\"%%f\", 1.0 + 1.0 / 3.0)");
89 result = SDL_snprintf(text, sizeof(text), "%+f", 1.0 + 1.0 / 3.0);
91 SDLTest_AssertPass("Call to SDL_snprintf(\"%%+f\", 1.0 + 1.0 / 3.0)");
95 result = SDL_snprintf(text, sizeof(text), "%.2f", 1.0 + 1.0 / 3.0);
97 SDLTest_AssertPass("Call to SDL_snprintf(\"%%.2f\", 1.0 + 1.0 / 3.0)");
101 result = SDL_snprintf(text, sizeof(text), "%6.2f", 1.0 + 1.0 / 3.0);
103 SDLTest_AssertPass("Call to SDL_snprintf(\"%%6.2f\", 1.0 + 1.0 / 3.0)");
107 result = SDL_snprintf(text, sizeof(text), "%06.2f", 1.0 + 1.0 / 3.0);
109 SDLTest_AssertPass("Call to SDL_snprintf(\"%%06.2f\", 1.0 + 1.0 / 3.0)");
113 result = SDL_snprintf(text, 5, "%06.2f", 1.0 + 1.0 / 3.0);
115 SDLTest_AssertPass("Call to SDL_snprintf(\"%%06.2f\", 1.0 + 1.0 / 3.0) with buffer size 5");
129 { (SDLTest_TestCaseFp)stdlib_snprintf, "stdlib_snprintf", "Call to SDL_snprintf", TEST_ENABLED };