From 1a32220ca94ae897cab408a9eeaed094a8a739f1 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 1 Oct 2024 19:15:17 +0900 Subject: Add --gap option to put empty lines between items --- test/test_go.rb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'test') 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 -- cgit v1.2.3