diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-12 12:56:17 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-12 12:56:17 +0900 |
| commit | cd847affb79ea6438c9721635724efc6f58e2215 (patch) | |
| tree | d1e631e3dca8832ee4c495924789f6697c3629cf /src/pattern_test.go | |
| parent | 7a2bc2cada971c7a390d09b0afda34780ff56fb6 (diff) | |
| download | fzf-cd847affb79ea6438c9721635724efc6f58e2215.tar.gz | |
Reorganize source code
Diffstat (limited to 'src/pattern_test.go')
| -rw-r--r-- | src/pattern_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pattern_test.go b/src/pattern_test.go index c006c451..4d36eda5 100644 --- a/src/pattern_test.go +++ b/src/pattern_test.go @@ -1,6 +1,10 @@ package fzf -import "testing" +import ( + "testing" + + "github.com/junegunn/fzf/src/algo" +) func TestParseTermsExtended(t *testing.T) { terms := parseTerms(ModeExtended, @@ -55,7 +59,7 @@ func TestExact(t *testing.T) { pattern := BuildPattern(ModeExtended, CaseSmart, []Range{}, nil, []rune("'abc")) str := "aabbcc abc" - sidx, eidx := ExactMatchNaive(pattern.caseSensitive, &str, pattern.terms[0].text) + sidx, eidx := algo.ExactMatchNaive(pattern.caseSensitive, &str, pattern.terms[0].text) if sidx != 7 || eidx != 10 { t.Errorf("%s / %d / %d", pattern.terms, sidx, eidx) } |
