summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb34
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