diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2023-12-26 23:40:20 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-12-26 23:42:14 +0900 |
| commit | 519de7c833ae46db72538b3cb5d2a53e08be2d78 (patch) | |
| tree | dc2ad75e743da90ebd61337a6d25b72823cb0132 /test | |
| parent | 97ccef1a04ef8a3fcffcc6682765d651b86d0480 (diff) | |
| download | fzf-519de7c833ae46db72538b3cb5d2a53e08be2d78.tar.gz | |
Fix unexpected result of --tiebreak=end
See https://github.com/junegunn/fzf/issues/3255#issuecomment-1869580320
Diffstat (limited to 'test')
| -rwxr-xr-x | test/test_go.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 771064ee..7b1f70a8 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -741,6 +741,12 @@ class TestGoFZF < TestBase 'xxoxxxxxxx', 'xoxxxxxxxx' ], `#{FZF} -fo --tiebreak=end,length,begin < #{tempname}`.lines(chomp: true) + + writelines(tempname, ['/bar/baz', '/foo/bar/baz']) + assert_equal [ + '/foo/bar/baz', + '/bar/baz', + ], `#{FZF} -fbaz --tiebreak=end < #{tempname}`.lines(chomp: true) end def test_tiebreak_length_with_nth |
