diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2022-08-03 22:18:26 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-08-03 22:18:26 +0900 |
commit | 38259d0382eba18b66c03d62e35089ec10c24698 (patch) | |
tree | ecd12308c7bfe674d701480b2a1512acb93a5ca7 /test | |
parent | f7e7259910393ea3eeeb3ac78913e881d4a86691 (diff) |
Fix incorrect ordering of `--tiebreak=chunk`
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_go.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index aa549ad3..6371e0e2 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -756,7 +756,7 @@ class TestGoFZF < TestBase def test_tiebreak_chunk writelines(tempname, [ - '1 foobarbaz baz', + '1 foobarbaz ba', '2 foobar baz', '3 foo barbaz' ]) @@ -764,8 +764,14 @@ class TestGoFZF < TestBase assert_equal [ '3 foo barbaz', '2 foobar baz', - '1 foobarbaz baz' + '1 foobarbaz ba' ], `#{FZF} -fo --tiebreak=chunk < #{tempname}`.lines(chomp: true) + + assert_equal [ + '1 foobarbaz ba', + '2 foobar baz', + '3 foo barbaz' + ], `#{FZF} -fba --tiebreak=chunk < #{tempname}`.lines(chomp: true) end def test_invalid_cache |