diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2015-04-16 14:19:28 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-04-16 14:19:28 +0900 |
| commit | b8904a8c3e8f6d8c00c8d69b153c0d1897b1ade2 (patch) | |
| tree | 7fd46744a6fd3d9f63657634d6d32a4ba09b140c /src/item_test.go | |
| parent | 48ab87294bb2df5ff32ff35a16231991a2e0887b (diff) | |
| download | fzf-b8904a8c3e8f6d8c00c8d69b153c0d1897b1ade2.tar.gz | |
Add --tiebreak option for customizing sort criteria
Close #191
Diffstat (limited to 'src/item_test.go')
| -rw-r--r-- | src/item_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/item_test.go b/src/item_test.go index 4eea8c15..2d375e47 100644 --- a/src/item_test.go +++ b/src/item_test.go @@ -42,7 +42,7 @@ func TestItemRank(t *testing.T) { strs := []string{"foo", "foobar", "bar", "baz"} item1 := Item{text: &strs[0], index: 1, offsets: []Offset{}} rank1 := item1.Rank(true) - if rank1.matchlen != 0 || rank1.strlen != 3 || rank1.index != 1 { + if rank1.matchlen != 0 || rank1.tiebreak != 3 || rank1.index != 1 { t.Error(item1.Rank(true)) } // Only differ in index |
