1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

Rename FuzzySearch to FilterStrings

It isn't necessarily fuzzy any more.
This commit is contained in:
Stefan Haller
2024-03-17 09:11:00 +01:00
parent a8797c7261
commit 561afa9901
3 changed files with 6 additions and 7 deletions

View File

@ -7,8 +7,7 @@ import (
"github.com/stretchr/testify/assert"
)
// TestFuzzySearch is a function.
func TestFuzzySearch(t *testing.T) {
func TestFilterStrings(t *testing.T) {
type scenario struct {
needle string
haystack []string
@ -68,7 +67,7 @@ func TestFuzzySearch(t *testing.T) {
}
for _, s := range scenarios {
assert.EqualValues(t, s.expected, FuzzySearch(s.needle, s.haystack, s.useFuzzySearch))
assert.EqualValues(t, s.expected, FilterStrings(s.needle, s.haystack, s.useFuzzySearch))
}
}