From f17f150e43de0293789f58bc8cd4a404bdbfedf1 Mon Sep 17 00:00:00 2001 From: seleznevae Date: Tue, 3 Dec 2019 20:54:34 +0300 Subject: [PATCH] [F] Fix tests --- ChangeLog.md | 1 + lib/fort.c | 2 +- tests/bb_tests/test_table_border_style.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 8c4585a..37f2837 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -3,6 +3,7 @@ ### Bug fixes - Fix undefined behavior due to incorrect usage of `isprint` function. +- Fix incorrect border character in `SOLID` style ### Internal diff --git a/lib/fort.c b/lib/fort.c index 3815b00..91f81bd 100644 --- a/lib/fort.c +++ b/lib/fort.c @@ -4697,7 +4697,7 @@ f_status set_default_cell_property(uint32_t property, int value) "┌", "─", "┬", "┐", \ "│", "│", "│", \ "", "", "", "", \ - "└", "─", "┴", "╯", \ + "└", "─", "┴", "┘", \ "│", "─", "│", "─", \ }, \ /* header_border_chars */ \ diff --git a/tests/bb_tests/test_table_border_style.c b/tests/bb_tests/test_table_border_style.c index 9dfe93e..a56e36d 100644 --- a/tests/bb_tests/test_table_border_style.c +++ b/tests/bb_tests/test_table_border_style.c @@ -560,7 +560,7 @@ void test_table_builtin_border_styles(void) "├──────┼──────────────────────────┼──────┼────────┤\n" "│ 4 │ 2001: A Space Odyssey │ 1968 │ 8.5 │\n" "│ 5 │ Blade Runner │ 1982 │ 8.1 │\n" - "└──────┴──────────────────────────┴──────┴────────╯\n"; + "└──────┴──────────────────────────┴──────┴────────┘\n"; assert_str_equal(table_str, table_str_etalon); ft_destroy_table(table);