Jeremy Drake
c8a4983ed9
oleaut32: Fix handling of negative fractional variant dates.
...
The integer part is the number of days to be added to the epoch
(1899-12-30), and the fractional part (disregarding sign) represents
the fraction of that day that has elapsed.
2010-10-07 12:00:28 +02:00
Jeremy Drake
25118e5383
oleaut32/tests: Test conversion of ambiguous DATE values.
...
For 0.0 < x < 1.0, DATE values x and -x represent the same date/time:
30-Dec-1899 at some time determined by x. When converting from DATE,
either value is accepted. When converting to DATE, the positive value
is produced.
2010-10-07 12:00:28 +02:00
Jeremy Drake
293b8be4e1
oleaut32/tests: Added tests for negative fractional variant dates.
2010-10-04 15:00:07 +02:00
Gerald Pfeifer
dbd2e8cb34
oleaut32/tests: Remove variable rValid which is not really used from test_VarMod.
2010-05-25 12:03:12 +02:00
Gerald Pfeifer
9c3729795f
oleaut32/tests: Remove variable expectedhres which is not really used from test_VarDiv.
2010-05-03 15:41:59 +02:00
André Hentschel
691e15b427
oleaut32/tests: Use testvalues from VarDateFromUdate also for regression testing of DosDateTimeToVariantTime.
2010-02-05 10:07:27 +01:00
André Hentschel
23ff47610e
oleaut32: Fix year 0.
2010-02-04 13:39:27 +01:00
André Hentschel
ac1ca87b21
oleaut32: Fix day rolling.
2010-02-04 13:39:27 +01:00
André Hentschel
1b51c21fb3
oleaut32: Rewrite RollUdate to be easier to change and to support more conversions.
2010-02-02 11:59:28 +01:00
André Hentschel
0e1bc3ef2b
oleaut32/tests: Add tests for backrolled time.
2010-01-28 11:07:42 +01:00
André Hentschel
2e48ecd924
oleaut32/tests: Add a test for DosTime.
2010-01-28 11:07:37 +01:00
Piotr Caban
1f7a07ebe3
oleaut32: Ignore milliseconds in VarDateFromUdate implementation.
2009-11-19 11:35:40 +01:00
André Hentschel
932976dcf5
oleaut32: Test for rolled hours and seconds.
2009-09-15 14:31:29 -05:00
André Hentschel
a83f94afa2
oleaut32: Test for rolled minutes.
2009-09-10 10:49:27 +02:00
Paul Vriens
28d0487c24
oleaut32/tests: Fix some intermittent test failures on W98 and NT4.
2009-06-02 11:57:21 +02:00
Paul Vriens
31bb9219d6
oleaut32/tests: Spelling fixes.
2009-05-29 11:26:08 +02:00
Detlef Riekenberg
00703d0c2f
oleaut32/tests: Replace lstrcpyW and lstrcatW with memcpy to fix failures on win95.
2009-04-20 17:19:58 +02:00
Detlef Riekenberg
6643049116
oleaut32: VarCat must use localized names for VT_BOOL.
2009-04-14 15:11:58 -05:00
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