Skip to content
Myr

Fix test case

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent a2aa1a1 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • tests:+4 added−2 removed

1 file+4 added−2 removed

modified:test/test_preview.rb+4 added-2 removed
207 unmodified lines
208 tmux.until { |lines| assert_includes lines[1], ' foo foo' }209 end210211 def test_preview_q_no_match_with_initial_query212 tmux.send_keys %(: | #{FZF} --preview 'echo foo {q}/{q}/{q:1}/{q:..}/{q:2}/{q:-1}/{q:-2}/{q:x}' --query 'foo bar'), :Enter212 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'), :Enter213 tmux.until { |lines| assert_equal 0, lines.match_count }214 tmux.until { |lines| assert_includes lines[1], ' foo bar/foo bar/foo/foo bar/bar/bar/foo/{q:x} ' }214 tmux.until { |lines| assert_includes lines[1], '1. /foo bar/foo/' }215 tmux.until { |lines| assert_includes lines[2], '2. /foo bar/bar/bar/' }216 tmux.until { |lines| assert_includes lines[3], '3. /foo /foo/{q:x}/' }217 end218219 def test_preview_update_on_select220 tmux.send_keys %(seq 10 | fzf -m --preview 'echo {+}' --bind a:toggle-all),
327 unmodified lines