[A] Added new style

This commit is contained in:
seleznevae
2018-05-07 23:25:45 +03:00
parent 0467409d6c
commit 917c74337b
6 changed files with 76 additions and 0 deletions

View File

@@ -175,6 +175,31 @@ void test_table_builtin_border_styles(void)
assert_str_equal(table_str, table_str_etalon);
ft_destroy_table(table);
/* *************************************************************** */
ft_set_default_border_style(FT_BASIC2_STYLE);
table = create_basic_table();
table_str = ft_to_string(table);
assert_true(table_str != NULL);
table_str_etalon =
"+------+--------------------------+------+--------+\n"
"| Rank | Title | Year | Rating |\n"
"+------+--------------------------+------+--------+\n"
"| 1 | The Shawshank Redemption | 1994 | 9.5 |\n"
"+------+--------------------------+------+--------+\n"
"| 2 | 12 Angry Men | 1957 | 8.8 |\n"
"+------+--------------------------+------+--------+\n"
"| 3 | It's a Wonderful Life | 1946 | 8.6 |\n"
"+------+--------------------------+------+--------+\n"
"| 4 | 2001: A Space Odyssey | 1968 | 8.5 |\n"
"+------+--------------------------+------+--------+\n"
"| 5 | Blade Runner | 1982 | 8.1 |\n"
"+------+--------------------------+------+--------+\n";
assert_str_equal(table_str, table_str_etalon);
ft_destroy_table(table);
/* *************************************************************** */
ft_set_default_border_style(FT_SIMPLE_STYLE);