Cdroid/tests/gui/calendar_tests.cc
2022-01-18 16:21:54 +08:00

24 lines
420 B
C++
Executable File

#include <gtest/gtest.h>
#include <cdroid.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);
}