diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-27 18:12:25 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-27 18:12:25 +0900 |
| commit | af7940746f73c14c5d498d762c8d29f45e02043f (patch) | |
| tree | 6cfd8442dd9a7530187b86a94df8bc15b29976de /test | |
| parent | a2aa1a156c29658b62a691f8aa343985043b8c9c (diff) | |
| download | fzf-af7940746f73c14c5d498d762c8d29f45e02043f.tar.gz | |
Fix test case
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_preview.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_preview.rb b/test/test_preview.rb index b92ac8c3..d4faffa5 100644 --- a/test/test_preview.rb +++ b/test/test_preview.rb @@ -209,9 +209,11 @@ class TestPreview < TestInteractive end def test_preview_q_no_match_with_initial_query - tmux.send_keys %(: | #{FZF} --preview 'echo foo {q}/{q}/{q:1}/{q:..}/{q:2}/{q:-1}/{q:-2}/{q:x}' --query 'foo bar'), :Enter + tmux.send_keys %(: | #{FZF} --preview 'echo 1. /{q}/{q:1}/; echo 2. /{q:..}/{q:2}/{q:-1}/; echo 3. /{q:s-2}/{q:-2}/{q:x}/' --query 'foo bar'), :Enter tmux.until { |lines| assert_equal 0, lines.match_count } - tmux.until { |lines| assert_includes lines[1], ' foo bar/foo bar/foo/foo bar/bar/bar/foo/{q:x} ' } + tmux.until { |lines| assert_includes lines[1], '1. /foo bar/foo/' } + tmux.until { |lines| assert_includes lines[2], '2. /foo bar/bar/bar/' } + tmux.until { |lines| assert_includes lines[3], '3. /foo /foo/{q:x}/' } end def test_preview_update_on_select |
