mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-11-30 03:08:12 +08:00
24 lines
420 B
C++
Executable File
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);
|
|
}
|