diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-10-01 19:15:17 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-10-01 19:15:17 +0900 |
| commit | 1a32220ca94ae897cab408a9eeaed094a8a739f1 (patch) | |
| tree | eac828f9fbc416c7d19fb74bc65e8e45d01b4786 /test | |
| parent | 4161403a1d6286f6ba7898b1f22f30d01d85b8dc (diff) | |
| download | fzf-1a32220ca94ae897cab408a9eeaed094a8a739f1.tar.gz | |
Add --gap option to put empty lines between items
Diffstat (limited to 'test')
| -rwxr-xr-x | test/test_go.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 8f627baf..2a462157 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -3392,6 +3392,40 @@ class TestGoFZF < TestBase assert lines[1]&.end_with?('1000││') end end + + def test_gap + tmux.send_keys %[seq 100 | #{FZF} --gap --border --reverse], :Enter + block = <<~BLOCK + ╭───────────────── + │ > + │ 100/100 ────── + │ > 1 + │ + │ 2 + │ + │ 3 + │ + │ 4 + BLOCK + tmux.until { assert_block(block, _1) } + end + + def test_gap_2 + tmux.send_keys %[seq 100 | #{FZF} --gap=2 --border --reverse], :Enter + block = <<~BLOCK + ╭───────────────── + │ > + │ 100/100 ────── + │ > 1 + │ + │ + │ 2 + │ + │ + │ 3 + BLOCK + tmux.until { assert_block(block, _1) } + end end module TestShell |
