summaryrefslogtreecommitdiff
path: root/test/test_core.rb
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-02-01 16:54:46 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-01 17:03:59 +0900
commit18cbb4a84d187adc121e5937b1ec027e00c66f0a (patch)
tree0eb142e14b841949e6b9243d17b843c5d425ea8f /test/test_core.rb
parente84afe196a85f677aef272677a346082f88bdfb6 (diff)
downloadfzf-18cbb4a84d187adc121e5937b1ec027e00c66f0a.tar.gz
Display header lines at the top in 'reverse-list' layout
Diffstat (limited to 'test/test_core.rb')
-rw-r--r--test/test_core.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_core.rb b/test/test_core.rb
index 893d040b..4b8a2cbc 100644
--- a/test/test_core.rb
+++ b/test/test_core.rb
@@ -576,9 +576,9 @@ class TestCore < TestInteractive
tmux.send_keys "seq 100 | #{fzf('--header-lines=10 -q 5 --layout=reverse-list')}", :Enter
2.times do
tmux.until do |lines|
- assert_equal '> 50', lines[0]
- assert_equal ' 2', lines[-4]
- assert_equal ' 1', lines[-3]
+ assert_equal ' 9', lines[8]
+ assert_equal ' 10', lines[9]
+ assert_equal '> 50', lines[10]
assert_equal ' 18/90', lines[-2]
end
tmux.send_keys :Up
@@ -665,7 +665,7 @@ class TestCore < TestInteractive
tmux.until do |lines|
assert_equal ' 90/90', lines[-2]
assert_equal header.map { |line| " #{line}".rstrip }, lines[-7...-2]
- assert_equal (' 1'..' 10').to_a.reverse, lines[-17...-7]
+ assert_equal (' 1'..' 10').to_a, lines.take(10)
end
end