0
0
Fork 0
bleve/document/field_geopoint_test.go

15 lines
317 B
Go

package document
import "testing"
func TestGeoPointField(t *testing.T) {
gf := NewGeoPointField("loc", []uint64{}, 0.0015, 0.0015)
numTokens, tokenFreqs := gf.Analyze()
if numTokens != 8 {
t.Errorf("expected 8 tokens, got %d", numTokens)
}
if len(tokenFreqs) != 8 {
t.Errorf("expected 8 token freqs")
}
}