Adding upstream version 2.5.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c71cb8b61d
commit
982828099e
783 changed files with 150650 additions and 0 deletions
16
document/field_geopoint_test.go
Normal file
16
document/field_geopoint_test.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package document
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestGeoPointField(t *testing.T) {
|
||||
gf := NewGeoPointField("loc", []uint64{}, 0.0015, 0.0015)
|
||||
gf.Analyze()
|
||||
numTokens := gf.AnalyzedLength()
|
||||
tokenFreqs := gf.AnalyzedTokenFrequencies()
|
||||
if numTokens != 8 {
|
||||
t.Errorf("expected 8 tokens, got %d", numTokens)
|
||||
}
|
||||
if len(tokenFreqs) != 8 {
|
||||
t.Errorf("expected 8 token freqs")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue