mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 22:03:11 -07:00
update and fix CI issues
This commit is contained in:
parent
a577692622
commit
d26c41fada
1 changed files with 7 additions and 7 deletions
|
@ -309,14 +309,14 @@ namespace DateCalculationUnitTests
|
|||
}
|
||||
|
||||
// Calculate the difference
|
||||
bool success = m_DateCalcEngine->TryGetDateDifference(
|
||||
auto boxedDiff = m_DateCalcEngine->TryGetDateDifference(
|
||||
DateUtils::SystemTimeToDateTime(datetimeDifftest[testIndex].startDate),
|
||||
DateUtils::SystemTimeToDateTime(datetimeDifftest[testIndex].endDate),
|
||||
dateOutputFormat,
|
||||
&diff);
|
||||
DateUtils::SystemTimeToDateTime(datetimeDifftest[testIndex].endDate),
|
||||
dateOutputFormat);
|
||||
|
||||
// Assert for the result
|
||||
VERIFY_IS_TRUE(success);
|
||||
VERIFY_IS_NOT_NULL(boxedDiff);
|
||||
diff = boxedDiff->Value;
|
||||
|
||||
bool areIdentical = true;
|
||||
if (diff.year != datetimeDifftest[testIndex].dateDiff.year ||
|
||||
|
@ -373,7 +373,7 @@ namespace DateCalculationUnitTests
|
|||
// Assert for the result
|
||||
VERIFY_IS_NOT_NULL(endDate);
|
||||
|
||||
SYSTEMTIME systemTime = DateUtils::DateTimeToSystemTime(*endDate);
|
||||
SYSTEMTIME systemTime = DateUtils::DateTimeToSystemTime(endDate->Value);
|
||||
bool isValid = true;
|
||||
if (systemTime.wYear != datetimeAddCase[testIndex].endDate.wYear ||
|
||||
systemTime.wMonth != datetimeAddCase[testIndex].endDate.wMonth ||
|
||||
|
@ -400,7 +400,7 @@ namespace DateCalculationUnitTests
|
|||
// assert for the result
|
||||
VERIFY_IS_NOT_NULL(endDate);
|
||||
|
||||
SYSTEMTIME systemTime = DateUtils::DateTimeToSystemTime(*endDate);
|
||||
SYSTEMTIME systemTime = DateUtils::DateTimeToSystemTime(endDate->Value);
|
||||
bool isValid = true;
|
||||
if (systemTime.wYear != datetimeSubtractCase[testIndex].endDate.wYear ||
|
||||
systemTime.wMonth != datetimeSubtractCase[testIndex].endDate.wMonth ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue