Move the test strings into their own array and convert them to unicode
commit49e119f95faa6166432f4f33f3f643d29558f507
authorFrancois Gouget <fgouget@free.fr>
Tue, 24 Dec 2002 00:49:27 +0000 (24 00:49 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 24 Dec 2002 00:49:27 +0000 (24 00:49 +0000)
tree3d4266574b599dde66cbdc2f94d3839adc983335
parent800cb96bd7846399caefddd258fff4a6718f0b38
Move the test strings into their own array and convert them to unicode
using a for loop. This lets us later print the offending string when a
test fails.
Fix the MSVC compilation error (XXXe183) and warnings (put suffixes as
in 0L & 1.0F, signed/unsigned warnings, s/-2147483648/0x80000000L/).
Uncomment the DateFromStr tests and fill in the todo fields where
appropriate.
Define an NB_OLE_STRINGS macro and use it to make sure all the arrays
have the right number of fields.
In the *FromStr loops, fill the return field with a dummy value (42)
before calling the conversion function. This way a test no longer
depends on whether the previous test failed or not!
If a test is expected to fail, then retval is meaningless -> omit it
from the result arrays.
If a test actually fails or was expected to fail, then there is no
point in checking retval.
Improve error reporting.
Pass the printf-style format directly to ok, remove the unnecessary
sprintfs.
dlls/oleaut32/tests/vartest.c