xlnt/source/utils/tests/test_timedelta.hpp
2015-11-22 00:33:56 -05:00

18 lines
381 B
C++

#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);
}
};