oleaut32/tests: Add tests for number of digits.
This commit is contained in:
parent
b74e1a570b
commit
55e4aa7a31
1 changed files with 22 additions and 3 deletions
|
@ -4549,10 +4549,12 @@ static void test_VarBstrFromR4(void)
|
|||
|
||||
{ 1.000e16, L"1E+16" },
|
||||
{ 1.234e16, L"1.234E+16" },
|
||||
{ 3.14159300, L"3.141593" },
|
||||
{ 3.14159265, L"3.141593" },
|
||||
{ M_PI, L"3.141593" },
|
||||
{ 37.86626157, L"37.86626" },
|
||||
{ 137.86626157, L"137.8663" },
|
||||
{ 1137.86626157, L"1137.866" },
|
||||
{ 12.34567890, L"12.34568" },
|
||||
{ 123.45678901, L"123.4568" },
|
||||
{ 1234.56789012, L"1234.568" },
|
||||
|
||||
{ 0.0, NULL }
|
||||
};
|
||||
|
@ -4575,7 +4577,12 @@ static void test_VarBstrFromR4(void)
|
|||
|
||||
{ 1.000e16, L"1E+16" },
|
||||
{ 1.234e16, L"1,234E+16" },
|
||||
{ 3.14159300, L"3,141593" },
|
||||
{ 3.14159265, L"3,141593" },
|
||||
{ M_PI, L"3,141593" },
|
||||
{ 12.34567890, L"12,34568" },
|
||||
{ 123.45678901, L"123,4568" },
|
||||
{ 1234.56789012, L"1234,568" },
|
||||
|
||||
{ 0.0, NULL }
|
||||
};
|
||||
|
@ -4693,6 +4700,12 @@ static void test_VarBstrFromR8(void)
|
|||
|
||||
{ 1.000e16, L"1E+16" },
|
||||
{ 1.234e16, L"1.234E+16" },
|
||||
{ 3.141592653590000, L"3.14159265359" },
|
||||
{ 3.141592653589793, L"3.14159265358979" },
|
||||
{ M_PI, L"3.14159265358979" },
|
||||
{ 12.345678901234567, L"12.3456789012346" },
|
||||
{ 123.456789012345678, L"123.456789012346" },
|
||||
{ 1234.567890123456789, L"1234.56789012346" },
|
||||
|
||||
{ 0.0, NULL }
|
||||
};
|
||||
|
@ -4715,6 +4728,12 @@ static void test_VarBstrFromR8(void)
|
|||
|
||||
{ 1.000e16, L"1E+16" },
|
||||
{ 1.234e16, L"1,234E+16" },
|
||||
{ 3.141592653590000, L"3,14159265359" },
|
||||
{ 3.141592653589793, L"3,14159265358979" },
|
||||
{ M_PI, L"3,14159265358979" },
|
||||
{ 12.345678901234567, L"12,3456789012346" },
|
||||
{ 123.456789012345678, L"123,456789012346" },
|
||||
{ 1234.567890123456789, L"1234,56789012346" },
|
||||
|
||||
{ 0.0, NULL }
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue