Commit Graph

161 Commits

Author SHA1 Message Date
Alexandre Julliard 3b6cab3f77 oleaut32/tests: Only compare the initialized part of DECIMAL variants. 2009-01-09 14:06:14 +01:00
Alexandre Julliard a840b6a7f8 Avoid including time.h before winsock.h in tests. 2008-12-04 12:42:53 +01:00
James Hawkins 698fac4983 oleaut32: Fix a few failing tests in win9x. 2008-07-08 10:56:42 +02:00
James Hawkins 192dbae550 oleaut32: Trace the failing VarCmp result. 2008-06-30 12:47:47 +02:00
Dan Kegel 3fa578220e oleaut32/tests: VariantInit() isn't enough, you have to give a value, too. 2008-06-06 10:28:48 +02:00
Jon Griffiths 7cdc50fede oleaut32/tests: Fix memory leaks reported by valgrind. 2008-06-02 13:44:19 +02:00
James Hawkins 04b820c354 oleaut32: Fix a few tests that fail in win2k. 2008-04-17 12:51:34 +02:00
Austin English e8dbd66c23 oleaut32: Spelling fixes. 2008-04-14 21:28:38 +02:00
Francois Gouget 8a18e0e43a Assorted spelling fixes. 2008-04-07 13:36:18 +02:00
Alexandre Julliard 56d8f51688 oleaut32/tests: Avoid relying on system-dependent rounding. 2007-12-17 11:56:41 +01:00
Francois Gouget c4b1195c0c Assorted spelling fixes. 2007-10-23 18:20:27 +02:00
Marcus Meissner 2e2720fe63 oleaut32/tests: Insert the decimal seperator, if it is just 1 char. 2007-10-17 13:41:55 +02:00
Rob Shearman ce2cba7a09 oleaut32: Add a check for a test that depends on the decimal separator being a dot. 2007-10-09 12:35:09 +02:00
Paul Vriens 99ebe8b428 oleaut32/tests: Skip VarCat and VarAnd tests a bit better if there is no I8 and/or UI8 support. 2007-08-20 22:26:03 +02:00
Paul Vriens 71dc8187c3 oleaut32/tests: Skip VarImp tests if there is no I8 and/or UI8 support. 2007-08-20 22:25:59 +02:00
Paul Vriens a41c22804e oleaut32/tests: Skip VarIdiv tests if there is no I8 and/or UI8 support. 2007-08-20 22:25:55 +02:00
Paul Vriens 7287027681 oleaut32/tests: Skip VarDiv tests if there is no I8 and/or UI8 support. 2007-08-20 11:50:39 +02:00
Paul Vriens 6081960025 oleaut32/tests: Skip VarAnd tests if there is no I8 and/or UI8 support. 2007-08-20 11:50:34 +02:00
Paul Vriens c36acfce38 oleaut32/tests: Skip VarCat tests if there is no I8 and/or UI8 support. 2007-08-20 11:50:30 +02:00
Paul Vriens 9226cee6e9 oleaut32/tests: Fix a few typos. 2007-08-20 11:50:21 +02:00
Paul Vriens c31ead4768 oleaut32/tests: Use GetModuleHandle and check only once for availability of some functions. 2007-08-17 12:21:51 +02:00
Francois Gouget ebadbd4bd5 Assorted spelling fixes. 2007-08-09 14:13:07 +02:00
Francois Gouget cb029e0b30 oleaut32/tests: Improve vtstr() and variantstr().
- Use a CASE() macro to simplify the vtstr() code and eliminate hard-coded variant type values.
- Update the list of known variant types.
- If a variant type is unknown, print its numerical value.
- In variantstr(), hand off all the standard cases to vtstr(), instead of (partially) duplicating its code.
2007-06-01 12:40:26 +02:00
Francois Gouget d252693a04 oleaut32/tests: Convert some macros to functions. 2007-05-31 14:18:26 +02:00
Francois Gouget fbb892c604 oleaut32/tests: Fix the EQ_DOUBLE() and EQ_FLOAT() macros so they work no matter how large the values to compare are.
Use them everywhere.
2007-05-31 14:18:20 +02:00
Francois Gouget 82a7753058 oleaut32/tests: Remove unneeded parentheses. 2007-05-31 14:18:07 +02:00
Francois Gouget c2d24fdba9 oleaut32/tests: Remove redundant semi-colons. 2007-05-31 14:17:59 +02:00
Francois Gouget fa48cb042c Assorted spelling fixes. 2007-05-29 13:47:18 +02:00
Francois Gouget ffbf92f5f2 oleaut32/tests: Fix the Visual C++ double to float conversion warnings. 2007-05-29 13:47:09 +02:00
Francois Gouget 1f692cdcaa oleaut32/tests: Fix compilation on systems that don't support nameless structs or unions. 2007-04-11 12:54:30 +02:00
Jason Edmeades 94b9b6146d oleaut32: Convert to VT_DECIMAL fails with overflow (with test). 2007-04-03 11:32:57 +02:00
Francois Gouget 536e738552 Assorted spelling fixes. 2007-02-14 21:03:57 +01:00
Francois Gouget 7f05a94f50 oleaut32/tests: Fix compilation on systems that don't support nameless structs (e.g. gcc 2.95). 2007-01-23 11:26:39 +01:00
Alexandre Julliard 25571d8789 oleaut32/tests: Replace some macros by functions to reduce code size and compile time. 2007-01-15 13:01:42 +01:00
Francois Gouget 3dd1a8b4f1 oleaut32/tests: Replace some '#if 0's with 'if (0)'s. 2007-01-08 12:07:45 +01:00
Francois Gouget ac25a3f93d oleaut32/tests: Fix compilation on systems with no nameless unions (e.g. gcc 2.95). 2007-01-08 12:07:37 +01:00
Alex Villacís Lasso c290f623e0 oleaut32: Fix VarMod(VT_DECIMAL) test by properly initializing the DECIMAL to use.
Fix Wine handling of VT_DECIMAL in VarMod.
2006-12-26 13:25:03 +01:00
Rob Shearman 029d244ea9 oleaut32: Fix a crash when executing the VarAnd test with an old version of oleaut32.dll. 2006-12-24 13:08:10 +01:00
Rob Shearman 452c127071 oleaut32: Fix the VarPow tests for older versions of oleaut32. 2006-12-24 13:08:06 +01:00
Francois Gouget 30e44c85c8 Assorted spelling fixes. 2006-11-07 15:25:24 +01:00
Hans Leidekker 279207b258 oleaut32/tests: Win64 printf format warning fixes. 2006-10-12 20:41:09 +02:00
Stefan Leichter a94bd8afdd oleaut32/tests: Print each 64-bit integers as two 32 bit integers. 2006-10-02 11:55:53 +02:00
Benjamin Arai 8d921f1d3c oleaut32: Conformance test for function variant:VarImp. 2006-09-21 11:25:45 +02:00
Benjamin Arai 7e1f392a27 oleaut32: Conformance test for function variant:VarIdiv. 2006-09-12 10:53:56 +02:00
Benjamin Arai a4ec2721a4 oleaut32: Conformance test for function variant:VarDiv. 2006-09-12 10:53:14 +02:00
Benjamin Arai aee8a62136 oleaut32: Conformance test for function variant:VarPow. 2006-09-08 12:55:05 +02:00
Benjamin Arai 9e3e591bf2 oleaut32: Conformance test for function variant:VarAnd. 2006-09-08 12:52:22 +02:00
Benjamin Arai 6aaf2af5c0 oleaut32: Updated conformance test return string for VT_RESERVED. 2006-08-24 11:51:58 +02:00
Benjamin Arai 63c26dac23 oleaut32: Move varformat conformance tests to new file varformat.c 2006-07-31 11:21:45 +02:00
Benjamin Arai f10ed1f16e oleaut32: VarSub: Conformance test. 2006-07-28 12:56:45 +02:00
Benjamin Arai b636e4dbf4 oleaut32: Fix missing tests and heap errors for VarCat conformance. 2006-07-21 13:40:39 +02:00
Benjamin Arai 911af4dce9 oleaut32: Update error codes for VarMod. 2006-07-19 09:38:50 +02:00
Robert Shearman c793bfe028 oleaut32: Test the return value of VarCat in the tests. 2006-07-17 14:46:26 +02:00
Benjamin Arai 700adac9ac oleaut32: Conformance test and patch for VarCat. 2006-07-11 17:14:58 +02:00
qingdoa daoo 5e09c29867 oleaut32: Copying a NULL BSTR should result in an empty BSTR in VariantCopy. 2006-07-10 11:52:45 +02:00
Robert Shearman 123592f0c3 oleaut32: Fix parsing of hex numbers with 'e' in the string by moving
the exponent parsing to after the hex digit parsing.
2006-07-03 11:33:23 +02:00
Kevin Koltzau 0e8b75bb12 oleaut32: Fix 64bit warnings in tests. 2006-06-19 09:21:19 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Huw Davies 2898b5d9ad oleaut32: Remove weird attempt to clear VT_VARIANT.
Add some tests.
2006-05-07 10:10:56 +02:00
Robert Shearman 93acfeb7f0 oleaut: Fix VarFormat for VT_NULL variants. 2006-03-06 11:09:54 +01:00
Robert Shearman e5b2c14665 oleaut: Add some more VarFormat tests and fix the VarMod decimal test. 2006-03-06 11:08:32 +01:00
Michael Stefaniuc ba23adba41 oleaut: Add missing SysFreeString to the Var{Mul,Add,Cmp} tests. 2006-01-18 11:30:23 +01:00
Michael Stefaniuc 0d00d9af0e oleaut: Merge the VarCmp tests from vartype.c into vartest.c. 2006-01-18 11:30:01 +01:00
Michael Stefaniuc 2f9c9b31ae oleaut32: Tests for the VarCmp reimplementation. 2006-01-16 21:34:59 +01:00
Alexandre Julliard 7c1925a0f3 Remove the 'L' suffix on a number of constants to avoid comparison
errors on 64-bit platforms.
2005-09-13 15:00:32 +00:00
Marcus Meissner bd7ec9aca5 The last argument to MultiByteToWideChar is wide character count and
not the buffer size in bytes. Fixed all places where it was wrong.
2005-09-12 22:07:53 +00:00
Michael Stefaniuc 4d36546c07 - VarAdd, VarMul: I4 overflows to R8 and not I8 even if the result
would fit in I8. Fix tests.
- Document a brokeness in the handling of I8 numbers in
  VarNumFromParseNum. Fix tests.
2005-08-23 09:33:37 +00:00
Francois Gouget c7dcf642ea Add trailing '\n's to ok() calls. 2005-07-06 15:46:47 +00:00
Michael Stefaniuc 0b1f8cdf4d - more VarFormat fixes for number formats (exponent, mixed '#' and '0'
in formats, rounding, etc). Simplify the code.
- previous VarFormat todo_wine tests pass now + add more tests
2005-06-23 09:48:07 +00:00
Saulius Krasuckas 8272074b85 Change (long long) to (LONGLONG) to compile with MSVC. 2005-06-14 12:25:29 +00:00
Michael Stefaniuc b9208137c1 - Fix VarFormat for formats that mix '0' and '#' in the whole number
part.
- Fix VarFormat for negative exponent formats.
- Add tests for the above + a couple of "todo_wine"'s.
2005-06-14 11:39:32 +00:00
Alexandre Julliard c2d5b444b3 Moved the NONAMELESSUNION/STRUCT macros to wine/test.h so that they
can be used in all the test.
2005-06-13 12:10:54 +00:00
Michael Stefaniuc 485d140b36 Tests for VarAdd. 2005-05-29 20:00:50 +00:00
Michael Stefaniuc d0dbae3b18 Tests for VarMul(). 2005-05-23 11:46:36 +00:00
Richard Cohen 97bc8f6dc7 - Remove unused macro.
- Check for VT_I8 before testing it.
- VarMod returns DISP_E_OVERFLOW not E_INVALIDARG.
2005-05-23 10:26:32 +00:00
Pierre d'Herbemont 342da59b0c Remove stdlib.h inclusion if winsock.h is included. 2005-05-18 15:33:20 +00:00
Rémi Assailly 6063b542aa char -> const char fixes. 2005-01-24 11:29:44 +00:00
Alex Villacís Lasso ed9a359402 When parsing an hex/oct integer value, copy value verbatim in VARIANT,
rather than a negated value. Add test case for this behavior.
2005-01-17 19:34:58 +00:00
Walt Ogburn f61786d444 VarParseNumFromStr: Keep zeros after decimal point, correctly keep
track of trailing zeros in a decimal number.
VarNumFromParseNum: Don't error on decimal expressions for zero.
2004-10-21 19:55:37 +00:00
Walt Ogburn 84c1f667ae Keep "trailing" zeros on whole number part of a decimal.
Add an example of this to tests.
2004-10-19 21:08:40 +00:00
Walt Ogburn ea1b58b560 Test zero exponents with and without signs. 2004-10-18 22:35:18 +00:00
Francois Gouget 08177d6d7b The Windows headers support for NONAMELESSUNION and NONAMELESSSTRUCT
is unusable. So don't force this mode. Instead check whether
NONAMELESSUNION and/or NONAMELESSSTRUCT are set (by the Wine headers)
and define custom access macros accordingly.
2004-08-13 19:49:53 +00:00
Jon Griffiths 309ed0641e Update VarXor,VarAbs,VarNot for all input types.
Test VarOr; fix a failure with later oleaut32 versions.
Speed up compilation by sharing failure strings.
2004-04-27 23:29:58 +00:00
Chris Morgan 58dcfb6205 Skip over most of the unused variant types to speed up the variant
tests.
2004-04-23 02:40:30 +00:00
Francois Gouget ebf0eb3138 Make static Unicode strings const. 2004-04-20 00:34:52 +00:00
Jon Griffiths ad1190e4ab Tests for VarXor/VarEqv. 2004-03-22 20:39:50 +00:00
Fabian Cenedese 5feedfdc73 Let VarParseNumFromStr and VarNumFromParseNum cope with hex and oct
strings. Needed from VB conversions such as CLng, CInt, CByte...
2004-03-16 19:15:04 +00:00
Fabian Cenedese 3d7034e79e VarRound implementation (without type DECIMAL yet) with test function. 2004-02-26 05:27:11 +00:00
Chris Morgan 21d591ec4f Implement tests for VarMod().
Added char *vtstr() to enhance test debugging by returning a text
string that corresponds to the input type.
2004-02-06 05:23:48 +00:00
Jon Griffiths d83ed49148 Remove tests that are covered by vartype.c.
Call by pointer for more functions not available in early versions.
Add tests for VarFix/VarInt/VarNeg, VarFormat "on/off/yes/no".
Fix tests that assumed relative dates.
Make BSTR copy test separate.
2004-01-20 23:38:38 +00:00
Francois Gouget 640cc3f3e1 Assorted spelling fixes. 2004-01-06 22:08:33 +00:00
Alexandre Julliard bb0d6b7202 Commented out tests that assume that the current year is 2003. 2004-01-02 01:51:38 +00:00
Marcus Meissner cf50f9a04e Implemented VarInt, VarPow.
Added R4 (float) support to VarAdd.
Added DATE support to VarSub.
2003-12-15 20:14:32 +00:00
Jon Griffiths 7e40baadc1 Reimplement/document every low level variant function.
Implement DECIMAL, I8, UI8 types and other missing conversions.
VariantChangeType: Use LOCALE_USER_DEFAULT as per MSDN.
VariantChangeTypeEx: Support new types, pass proper flags.
VarNumFromParseNum: Support VT_DECIMAL as output.
2003-12-11 04:28:20 +00:00
Jon Griffiths 27db93dc6a Fix a couple of tests for w2k (Russian). 2003-12-10 00:37:35 +00:00
Jon Griffiths 85602c218d Fix the tests to pass when locale settings are user-overriden.
Fix those tests which pass now.
Test copying, formatting, VarAbs, VarNot.
2003-12-09 00:05:53 +00:00
Alexandre Julliard 5f8223670a Porting fixes. 2003-11-28 23:19:30 +00:00
Jon Griffiths 392cbdf7b8 Tests for the non-variant date conversion functions. 2003-11-25 01:50:10 +00:00
Daniel Marmier 0348649853 Fixed warnings with gcc option "-Wwrite-strings". 2003-10-06 21:03:32 +00:00
Jon Griffiths 72d7e5b10d Tests for recent variant changes. 2003-10-03 04:34:34 +00:00