2016-07-09 22:13:56 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <cxxtest/TestSuite.h>
|
|
|
|
|
|
|
|
#include <xlnt/xlnt.hpp>
|
|
|
|
|
|
|
|
class test_alignment : public CxxTest::TestSuite
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void test_all()
|
|
|
|
{
|
|
|
|
xlnt::alignment alignment;
|
|
|
|
|
2016-08-18 19:34:18 +08:00
|
|
|
TS_ASSERT(alignment.horizontal());
|
|
|
|
TS_ASSERT_EQUALS(*alignment.horizontal(), xlnt::horizontal_alignment::general);
|
|
|
|
TS_ASSERT(alignment.vertical());
|
|
|
|
TS_ASSERT_EQUALS(*alignment.vertical(), xlnt::vertical_alignment::bottom);
|
|
|
|
TS_ASSERT(!alignment.shrink());
|
|
|
|
TS_ASSERT(!alignment.wrap());
|
2016-07-09 22:13:56 +08:00
|
|
|
}
|
|
|
|
};
|