You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by rh...@apache.org on 2014/02/12 06:51:52 UTC

svn commit: r1567531 - /incubator/log4cxx/trunk/src/test/cpp/helpers/cacheddateformattestcase.cpp

Author: rhys
Date: Wed Feb 12 05:51:52 2014
New Revision: 1567531

URL: http://svn.apache.org/r1567531
Log:
Uncomment out tests.

Accidentally nuked these in the prior commit.  Sorry.

Modified:
    incubator/log4cxx/trunk/src/test/cpp/helpers/cacheddateformattestcase.cpp

Modified: incubator/log4cxx/trunk/src/test/cpp/helpers/cacheddateformattestcase.cpp
URL: http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/test/cpp/helpers/cacheddateformattestcase.cpp?rev=1567531&r1=1567530&r2=1567531&view=diff
==============================================================================
--- incubator/log4cxx/trunk/src/test/cpp/helpers/cacheddateformattestcase.cpp (original)
+++ incubator/log4cxx/trunk/src/test/cpp/helpers/cacheddateformattestcase.cpp Wed Feb 12 05:51:52 2014
@@ -136,18 +136,18 @@ LOGUNIT_CLASS(CachedDateFormatTestCase)
      CachedDateFormat chicagoFormat(chicagoBase, 1000000);
      chicagoFormat.setTimeZone(TimeZone::getTimeZone(LOG4CXX_STR("GMT-5")));
 
-/////Pool p;
-/////LogString actual;
-/////gmtFormat.format(actual, jul2, p);
-/////LOGUNIT_ASSERT_EQUAL((LogString) LOG4CXX_STR("00:00:00,000"), actual);
-/////
-/////actual.erase(actual.begin(), actual.end());
-/////chicagoFormat.format(actual, jul2, p);
-/////LOGUNIT_ASSERT_EQUAL((LogString) LOG4CXX_STR("19:00:00,000"), actual);
-/////
-///// actual.erase(actual.begin(), actual.end());
-///// gmtFormat.format(actual, jul2, p);
-///// LOGUNIT_ASSERT_EQUAL((LogString) LOG4CXX_STR("00:00:00,000"), actual);
+     Pool p;
+     LogString actual;
+     gmtFormat.format(actual, jul2, p);
+     LOGUNIT_ASSERT_EQUAL((LogString) LOG4CXX_STR("00:00:00,000"), actual);
+     
+     actual.erase(actual.begin(), actual.end());
+     chicagoFormat.format(actual, jul2, p);
+     LOGUNIT_ASSERT_EQUAL((LogString) LOG4CXX_STR("19:00:00,000"), actual);
+     
+     actual.erase(actual.begin(), actual.end());
+     gmtFormat.format(actual, jul2, p);
+     LOGUNIT_ASSERT_EQUAL((LogString) LOG4CXX_STR("00:00:00,000"), actual);
   }
 
   /**