Go to the source code of this file.
|
#define | DATA0 2, FALSE, 3, L".", L",", 0 |
|
#define | DATA1 3, TRUE, 3, L"<>", L":", 1 |
|
◆ DATA0
◆ DATA1
◆ PTEST_ENTRY
◆ PTEST_RETURN
◆ TEST_ENTRY
◆ TEST_RETURN
◆ DoTestEntry()
Definition at line 54 of file Int64ToString.cpp.
55{
57
58 WCHAR szDecimalSep[10], szThousandSep[10];
61
63 {
65 szDecimalSep, szThousandSep,
pEntry->NegativeOrder
66 };
67
70
72 if (bVista)
73 {
76 lineno,
pEntry->Vista.text, szBuff);
77 }
78 else
79 {
82 lineno,
pEntry->NonVista.text, szBuff);
83 }
84
86
90 if (bVista)
91 {
94 lineno,
pEntry->Vista.text, szBuff);
95 }
96 else
97 {
100 lineno,
pEntry->NonVista.text, szBuff);
101 }
102}
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
EXTERN_C INT WINAPI Int64ToString(_In_ LONGLONG llValue, _Out_writes_(cchOut) LPWSTR pszOut, _In_ UINT cchOut, _In_ BOOL bUseFormat, _In_opt_ const NUMBERFMTW *pNumberFormat, _In_ DWORD dwNumberFlags)
EXTERN_C INT WINAPI LargeIntegerToString(_In_ const LARGE_INTEGER *pLargeInt, _Out_writes_(cchOut) LPWSTR pszOut, _In_ UINT cchOut, _In_ BOOL bUseFormat, _In_opt_ const NUMBERFMTW *pNumberFormat, _In_ DWORD dwNumberFlags)
Referenced by Test_EntryTest().
◆ START_TEST()
Definition at line 186 of file Int64ToString.cpp.
187{
189 trace(
"bVista: %d\n", bVista);
190
194}
static void Test_EntryTest(BOOL bVista)
static void Test_Int64ToString(BOOL bVista)
static void Test_LargeIntegerToString(BOOL bVista)
VERSIONHELPERAPI IsWindowsVistaOrGreater()
◆ Test_EntryTest()
static void Test_EntryTest |
( |
BOOL |
bVista | ) |
|
|
static |
Definition at line 104 of file Int64ToString.cpp.
105{
107 {
109 }
110}
static const TEST_ENTRY s_Entries[]
static const SIZE_T s_cEntries
static void DoTestEntry(BOOL bVista, const TEST_ENTRY *pEntry)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by START_TEST().
◆ Test_Int64ToString()
static void Test_Int64ToString |
( |
BOOL |
bVista | ) |
|
|
static |
Definition at line 112 of file Int64ToString.cpp.
113{
116
120
124
126 if (bVista)
127 {
130 }
131 else
132 {
135 }
136
140
144}
#define ok_int(expression, result)
Referenced by START_TEST().
◆ Test_LargeIntegerToString()
static void Test_LargeIntegerToString |
( |
BOOL |
bVista | ) |
|
|
static |
◆ s_cEntries
◆ s_Entries
Initial value:=
{
{ __LINE__, 0,
DATA0, { 3,
L".00" }, { 3,
L".00" } },
{ __LINE__, 0,
DATA1, { 6,
L"0<>000" }, { 6,
L"0<>000" } },
{ __LINE__, 1,
DATA0, { 4,
L"1.00" }, { 4,
L"1.00" } },
{ __LINE__, 1,
DATA1, { 6,
L"1<>000" }, { 6,
L"1<>000" } },
{ __LINE__, -999,
DATA0, { 0,
L"#####" }, { 8,
L"(999.00)" } },
{ __LINE__, -999,
DATA1, { 0,
L"#####" }, { 9,
L"-999<>000" } },
{ __LINE__, 100000,
DATA0, { 10,
L"100,000.00" }, { 10,
L"100,000.00" } },
{ __LINE__, 100000,
DATA1, { 12,
L"100:000<>000" }, { 12,
L"100:000<>000" } },
{ __LINE__, 0xE8D4A51000LL,
DATA0, { 20,
L"1,000,000,000,000.00" }, { 20,
L"1,000,000,000,000.00" } },
{ __LINE__, 0xE8D4A51000LL,
DATA1, { 22,
L"1:000:000:000:000<>000" }, { 22,
L"1:000:000:000:000<>000" } },
{ __LINE__, 0x7FFFFFFFFFFFFFFFLL,
DATA0, { 28,
L"9,223,372,036,854,775,807.00" }, { 28,
L"9,223,372,036,854,775,807.00" } },
{ __LINE__, 0x7FFFFFFFFFFFFFFFLL,
DATA1, { 30,
L"9:223:372:036:854:775:807<>000" }, { 30,
L"9:223:372:036:854:775:807<>000" } },
}
Definition at line 37 of file Int64ToString.cpp.
Referenced by Test_EntryTest().