1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

oleaut32/tests: Add tests for number of digits.

This commit is contained in:
Daniel Lehman 2024-02-04 08:26:00 -08:00 committed by Alexandre Julliard
parent b74e1a570b
commit 55e4aa7a31

View file

@ -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 }
};