diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2022-11-10 16:23:33 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-11-10 16:23:33 +0900 |
| commit | 8868d7d1883178b5d196fe0d8eaafb22668343ed (patch) | |
| tree | 14d1badb6050651e28819806bb1d31646b3f24b6 /test | |
| parent | 2eec9892be78bc5fbf8d0cdcd5b90317f426e944 (diff) | |
| download | fzf-8868d7d1883178b5d196fe0d8eaafb22668343ed.tar.gz | |
Add --separator to customize the info separator
Diffstat (limited to 'test')
| -rwxr-xr-x | test/test_go.rb | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 7b7046fb..41767fce 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -2380,13 +2380,28 @@ class TestGoFZF < TestBase end end - def test_info_separator + def test_info_separator_unicode tmux.send_keys 'seq 100 | fzf -q55', :Enter tmux.until { assert_includes(_1[-2], ' 1/100 ─') } end + def test_info_separator_no_unicode + tmux.send_keys 'seq 100 | fzf -q55 --no-unicode', :Enter + tmux.until { assert_includes(_1[-2], ' 1/100 -') } + end + + def test_info_separator_repeat + tmux.send_keys 'seq 100 | fzf -q55 --separator _-', :Enter + tmux.until { assert_includes(_1[-2], ' 1/100 _-_-') } + end + + def test_info_separator_ansi_colors_and_tabs + tmux.send_keys "seq 100 | fzf -q55 --tabstop 4 --separator $'\\x1b[33ma\\tb'", :Enter + tmux.until { assert_includes(_1[-2], ' 1/100 a ba ba') } + end + def test_info_no_separator - tmux.send_keys 'seq 100 | fzf -q55 --info nosep', :Enter + tmux.send_keys 'seq 100 | fzf -q55 --no-separator', :Enter tmux.until { assert(_1[-2] == ' 1/100') } end end |
