mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
23 lines
555 B
C++
23 lines
555 B
C++
#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;
|
|
|
|
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());
|
|
}
|
|
};
|