From a88bf87e2ae2fada2bd3d179ba67d681a7913f35 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 21 Apr 2015 22:36:40 +0900 Subject: [PATCH] Update test case --- src/pattern_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pattern_test.go b/src/pattern_test.go index c73e650..7f00272 100644 --- a/src/pattern_test.go +++ b/src/pattern_test.go @@ -7,7 +7,7 @@ import ( ) func TestParseTermsExtended(t *testing.T) { - terms := parseTerms(ModeExtended, + terms := parseTerms(ModeExtended, CaseSmart, "aaa 'bbb ^ccc ddd$ !eee !'fff !^ggg !hhh$") if len(terms) != 8 || terms[0].typ != termFuzzy || terms[0].inv || @@ -31,7 +31,7 @@ func TestParseTermsExtended(t *testing.T) { } func TestParseTermsExtendedExact(t *testing.T) { - terms := parseTerms(ModeExtendedExact, + terms := parseTerms(ModeExtendedExact, CaseSmart, "aaa 'bbb ^ccc ddd$ !eee !'fff !^ggg !hhh$") if len(terms) != 8 || terms[0].typ != termExact || terms[0].inv || len(terms[0].text) != 3 || @@ -47,7 +47,7 @@ func TestParseTermsExtendedExact(t *testing.T) { } func TestParseTermsEmpty(t *testing.T) { - terms := parseTerms(ModeExtended, "' $ ^ !' !^ !$") + terms := parseTerms(ModeExtended, CaseSmart, "' $ ^ !' !^ !$") if len(terms) != 0 { t.Errorf("%s", terms) }