~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/calendar_test.cc

  • Committer: Brian Aker
  • Date: 2010-06-03 22:55:32 UTC
  • mto: (1578.6.9 explain-drizzle)
  • mto: This revision was merged to the branch mainline in revision 1591.
  • Revision ID: brian@gir-2.local-20100603225532-5yuc8um41i4owavf
Additional pass through to remove raw field access.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
TEST(calendar_julian_day_number_from_gregorian_date_test, CalculationTest)
30
30
{
31
31
  uint32_t year, month, day;
32
 
 
 
32
  
33
33
  year= 2010; month= 4; day= 2;
34
34
  EXPECT_EQ(2455289, julian_day_number_from_gregorian_date(year, month, day));
35
35
  
129
129
  year= 2020; month= 7; day= 13; hour= 16; minute= 56; second= 59;
130
130
  EXPECT_TRUE(in_unix_epoch_range(year, month, day, hour, minute, second));
131
131
}
 
132
 
 
133
 
 
134
int main(int argc, char **argv)
 
135
{
 
136
  ::testing::InitGoogleTest(&argc, argv);
 
137
  return RUN_ALL_TESTS();
 
138
}