0
0

added additional tests for bug #214

This commit is contained in:
Marty Schoch 2015-07-06 17:32:33 -04:00
parent 7be7ecdf8e
commit 65556f45c7
2 changed files with 21 additions and 0 deletions

View File

@ -175,6 +175,14 @@ func TestFrenchAnalyzer(t *testing.T) {
},
},
},
{
input: []byte("propriétaire"),
output: analysis.TokenStream{
&analysis.Token{
Term: []byte("proprietair"),
},
},
},
}
cache := registry.NewCache()

View File

@ -981,6 +981,19 @@ func TestFrenchLightStemmer(t *testing.T) {
},
},
},
// bug #214
{
input: analysis.TokenStream{
&analysis.Token{
Term: []byte("propriétaire"),
},
},
output: analysis.TokenStream{
&analysis.Token{
Term: []byte("proprietair"),
},
},
},
}
cache := registry.NewCache()