Cdroid/tests/gui/calendar_tests.cc

24 lines
421 B
C++
Executable File

#include <gtest/gtest.h>
#include <windows.h>
#include <ngl_os.h>
#include <sys/time.h>
#include <core/calendar.h>
class CALENDAR:public testing::Test{
public :
virtual void SetUp(){
}
virtual void TearDown(){
}
};
TEST_F(CALENDAR,1970){
Calendar cal;
cal.set(1970,0,1,0,0,0);
ASSERT_EQ(cal.getTime(),0);
cal.setTimeZone(3600*8);
cal.set(1970,0,1,0,0,0);
ASSERT_EQ(cal.getTime(),0);
}