~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/date_test.cc

  • Committer: Lee Bieber
  • Date: 2011-01-25 17:15:03 UTC
  • mfrom: (1994.4.55 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2115.
  • Revision ID: kalebral@gmail.com-20110125171503-zyx91pfdyyw9lty5
Merge Marisa - 684803: Need to update Drizzledump documentation with migration conversions / caveats
Merge Marisa - 686641: Need to document removal of multi-table update/delete from Drizzle

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include <config.h>
 
21
#include "config.h"
22
22
 
23
23
#define BOOST_TEST_DYN_LINK
24
24
#include <boost/test/unit_test.hpp>
472
472
  BOOST_REQUIRE_EQUAL(0, filled.tm_min);
473
473
  BOOST_REQUIRE_EQUAL(0, filled.tm_sec);
474
474
 
 
475
  /* TODO: these fail, shouldn't they also be set properly? */
 
476
  /* From Andrew: These fail because Temporal::to_tm doesn't populate them.
 
477
     Does it need to or would we be wasting cycles doing it? */
 
478
 
 
479
  BOOST_WARN_EQUAL(228, filled.tm_yday);
 
480
  BOOST_WARN_EQUAL(6, filled.tm_wday);
 
481
  BOOST_WARN_EQUAL(-1, filled.tm_isdst);
475
482
}
476
483
 
477
484
BOOST_FIXTURE_TEST_CASE(from_tm, DateTest)