Update of /cvsroot/babylonlib/_SrcPool/Cpp/Samples/DateTime/Src
In directory sc8-pr-cvs1:/tmp/cvs-serv23165/Cpp/Samples/DateTime/Src
Modified Files:
TsLeapYear.cpp
Log Message:
Write result to the test log
Index: TsLeapYear.cpp
===================================================================
RCS file: /cvsroot/babylonlib/_SrcPool/Cpp/Samples/DateTime/Src/TsLeapYear.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TsLeapYear.cpp 30 Jan 2003 03:40:22 -0000 1.2
--- TsLeapYear.cpp 31 Jan 2003 03:09:03 -0000 1.3
***************
*** 16,22 ****
--- 16,28 ----
#include "KTime.h" //IsLeapYear()
#include "KTChar.h" //TCHAR typedef
+ #include "KTestLog.h" //TESTENTRY struct
extern bool TsWriteToView(LPCTSTR lszText);
+ #ifdef _DEBUG
+ #undef THIS_FILE
+ static char THIS_FILE[] = __FILE__;
+ #endif
+
//TestLeapYear()------------------------------------------------------------
/*Function validates leap years.
***************
*** 27,30 ****
--- 33,39 ----
{
TsWriteToView(_T("TestLeapYear()\r\n"));
+ TESTENTRY logEntry =
+ {_T("IsLeapYear()"), _T("KTime.h"), false};
+
bool bRes = true;
const int TESTCOUNT = 19;
***************
*** 111,114 ****
--- 120,128 ----
}
+ //Write test log
+ logEntry.m_bResult = bRes;
+ LogTest(&logEntry);
+ logEntry.m_szObjectName = _T("IS_LEAP_YEAR()");
+ LogTest(&logEntry);
TsWriteToView(_T("======================\r\n"));
return bRes;
***************
*** 118,121 ****
--- 132,137 ----
/*****************************************************************************
* $Log:
+ * 4 Biblioteka1.3 30/01/2003 9:47:38 PMDarko Write results
+ * to the test log
* 3 Biblioteka1.2 22/01/2003 10:23:23 PMDarko Unicode
* 2 Biblioteka1.1 20/01/2003 3:15:36 AMDarko Replaced BOOL
|