mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
oleaut32/tests: Use testvalues from VarDateFromUdate also for regression testing of DosDateTimeToVariantTime.
This commit is contained in:
parent
b40bb31995
commit
691e15b427
@ -1779,6 +1779,41 @@ static void test_DosDateTimeToVariantTime(void)
|
||||
DOS2DT(1,1,1980,0,0,60,0,0.0); /* Invalid seconds */
|
||||
DOS2DT(1,1,1980,23,0,0,1,29221.95833333333); /* 1/1/1980 11:00:00 PM */
|
||||
DOS2DT(1,1,1980,24,0,0,0,0.0); /* Invalid hours */
|
||||
|
||||
DOS2DT(1,1,1980,0,0,1,1,29221.0);
|
||||
DOS2DT(2,1,1980,0,0,0,1,29222.0);
|
||||
DOS2DT(2,1,1980,0,0,0,1,29222.0);
|
||||
DOS2DT(31,12,1990,0,0,0,1,33238.0);
|
||||
DOS2DT(31,12,90,0,0,0,1,40543.0);
|
||||
DOS2DT(30,12,1899,0,0,0,1,46751.0);
|
||||
DOS2DT(1,1,100,0,0,0,1,43831.0);
|
||||
DOS2DT(31,12,9999,0,0,0,1,59901.0);
|
||||
DOS2DT(1,1,10000,0,0,0,1,59902.0);
|
||||
DOS2DT(1,1,-10000,0,0,0,1,48214.0);
|
||||
|
||||
DOS2DT(30,12,1899,0,0,0,1,46751.0);
|
||||
DOS2DT(30,12,1899,0,0,1,1,46751.0);
|
||||
|
||||
DOS2DT(1,1,1980,18,1,16,1,29221.75087962963);
|
||||
DOS2DT(1,300,1980,18,1,16,1,29556.75087962963);
|
||||
DOS2DT(300,1,1980,18,1,16,1,29232.75087962963);
|
||||
DOS2DT(0,1,1980,42,1,16,1,29220.4175462963);
|
||||
DOS2DT(1,1,1980,17,61,16,0,0.0);
|
||||
DOS2DT(1,1,1980,18,0,76,1,29221.75013888889);
|
||||
DOS2DT(1,-300,1980,18,1,16,1,29312.75087962963);
|
||||
DOS2DT(-300,1,1980,18,1,16,1,29240.75087962963);
|
||||
DOS2DT(3,1,1980,-30,1,16,1,29223.08421296296);
|
||||
DOS2DT(1,1,1980,20,-119,16,1,29221.83976851852);
|
||||
DOS2DT(1,1,1980,18,3,-104,1,29221.75236111111);
|
||||
DOS2DT(1,12001,-1020,18,1,16,1,55519.75087962963);
|
||||
DOS2DT(1,-23,1982,18,1,16,1,30195.75087962963);
|
||||
DOS2DT(-59,3,1980,18,1,16,1,29285.75087962963);
|
||||
DOS2DT(1,1,0,0,0,0,1,54058.0);
|
||||
DOS2DT(0,0,1980,0,0,0,1,29189.0);
|
||||
DOS2DT(0,1,1980,0,0,0,1,29220.0);
|
||||
DOS2DT(-1,1,1980,18,1,16,1,29251.75087962963);
|
||||
DOS2DT(1,1,-1,18,1,16,1,53693.75087962963);
|
||||
DOS2DT(1,-1,1980,18,1,16,0,0);
|
||||
}
|
||||
|
||||
static void test_dt2dos(int line, double dt, INT r, WORD d, WORD m, WORD y,
|
||||
|
Loading…
Reference in New Issue
Block a user