[A] Added c++ tests
This commit is contained in:
@@ -31,6 +31,15 @@ int main()
|
||||
table.write_ln("4", "2001: A Space Odyssey", "1968", "8.5");
|
||||
table.write_ln("5", "Blade Runner", "1982", "8.1");
|
||||
|
||||
using fort::CellOption;
|
||||
using fort::TableOption;
|
||||
table.set_option<CellOption::MinWidth>(0, 0, 20);
|
||||
table.set_option<CellOption::TextAlign>(0, 0, fort::TextAlign::Left);
|
||||
table.set_option<CellOption::RowType>(2, FT_ANY_COLUMN, fort::RowType::Header);
|
||||
|
||||
|
||||
table.set_option<TableOption::LeftMargin>(4);
|
||||
|
||||
table.set_border_style(FT_SOLID_STYLE);
|
||||
std::cout << table.to_string();
|
||||
}
|
||||
|
Reference in New Issue
Block a user