Skip to content

Commit

Permalink
Add hidden lines test
Browse files Browse the repository at this point in the history
  • Loading branch information
rbong committed Aug 18, 2024
1 parent 8ab4bab commit 5224c50
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
16 changes: 16 additions & 0 deletions t/data/graph_merge_multiline_hidden_extended_out
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions t/data/graph_merge_multiline_hidden_out
Original file line number Diff line number Diff line change
@@ -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
21 changes: 20 additions & 1 deletion t/t_graph_merge_multiline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,30 @@ EOF

diff_data "$VIM_OUT" "graph_merge_multiline_out"

VIM_OUT="$TMP/extended_out"
VIM_OUT="$TMP/hidden_basic_out"
run_vim_command <<EOF
$FLOG_CMD
normal <
silent w $VIM_OUT
EOF

diff_data "$VIM_OUT" "graph_merge_multiline_hidden_out"

VIM_OUT="$TMP/extended_hidden_out"
run_vim_command <<EOF
let g:flog_enable_extended_chars = 1
$FLOG_CMD
silent w $VIM_OUT
EOF

diff_data "$VIM_OUT" "graph_merge_multiline_extended_out"

VIM_OUT="$TMP/hidden_extended_out"
run_vim_command <<EOF
let g:flog_enable_extended_chars = 1
$FLOG_CMD
normal <
silent w $VIM_OUT
EOF

diff_data "$VIM_OUT" "graph_merge_multiline_hidden_extended_out"

0 comments on commit 5224c50

Please sign in to comment.