From 5224c5071b32c93ed5c61c115879f5b762df9a5e Mon Sep 17 00:00:00 2001 From: rbong Date: Sun, 18 Aug 2024 11:49:36 -0400 Subject: [PATCH] Add hidden lines test --- .../graph_merge_multiline_hidden_extended_out | 16 ++++++++++++++ t/data/graph_merge_multiline_hidden_out | 16 ++++++++++++++ t/t_graph_merge_multiline.sh | 21 ++++++++++++++++++- 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 t/data/graph_merge_multiline_hidden_extended_out create mode 100644 t/data/graph_merge_multiline_hidden_out diff --git a/t/data/graph_merge_multiline_hidden_extended_out b/t/data/graph_merge_multiline_hidden_extended_out new file mode 100644 index 0000000..5742812 --- /dev/null +++ b/t/data/graph_merge_multiline_hidden_extended_out @@ -0,0 +1,16 @@ + 1-e + == 1 hidden lines == + 1-d + 1-d + +  2-b +  2-b +  2-a +  2-a +  1-c +  1-c + + 1-b + 1-b + 1-a + 1-a diff --git a/t/data/graph_merge_multiline_hidden_out b/t/data/graph_merge_multiline_hidden_out new file mode 100644 index 0000000..07a7ac9 --- /dev/null +++ b/t/data/graph_merge_multiline_hidden_out @@ -0,0 +1,16 @@ +• 1-e +│ == 1 hidden lines == +• 1-d +│ 1-d +├─╮ +│ • 2-b +│ │ 2-b +│ • 2-a +│ │ 2-a +• │ 1-c +│ │ 1-c +├─╯ +• 1-b +│ 1-b +• 1-a + 1-a diff --git a/t/t_graph_merge_multiline.sh b/t/t_graph_merge_multiline.sh index cecc08b..31ab067 100755 --- a/t/t_graph_merge_multiline.sh +++ b/t/t_graph_merge_multiline.sh @@ -33,7 +33,16 @@ EOF diff_data "$VIM_OUT" "graph_merge_multiline_out" -VIM_OUT="$TMP/extended_out" +VIM_OUT="$TMP/hidden_basic_out" +run_vim_command <