summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-11-10 16:23:33 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-11-10 16:23:33 +0900
commit8868d7d1883178b5d196fe0d8eaafb22668343ed (patch)
tree14d1badb6050651e28819806bb1d31646b3f24b6 /test
parent2eec9892be78bc5fbf8d0cdcd5b90317f426e944 (diff)
downloadfzf-8868d7d1883178b5d196fe0d8eaafb22668343ed.tar.gz
Add --separator to customize the info separator
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb19
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