xlnt/source/utils/tests/test_timedelta.hpp

18 lines
381 B
C++
Raw Normal View History

2015-11-22 13:33:56 +08:00
#pragma once
#include <cxxtest/TestSuite.h>
class test_timedelta : public CxxTest::TestSuite
{
public:
void test_from_number()
{
auto td = xlnt::timedelta::from_number(1.0);
TS_ASSERT(td.days == 1);
TS_ASSERT(td.hours == 0);
TS_ASSERT(td.minutes == 0);
TS_ASSERT(td.seconds == 0);
TS_ASSERT(td.microseconds == 0);
}
};