snapshot of https://github.com/blevesearch/bleve.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
Coverage / coverage (push) Failing after 6s
Tests / test (1.24.x, ubuntu-latest) (push) Failing after 42s
Tests / test (1.26.x, ubuntu-latest) (push) Failing after 38s
Tests / test (1.25.x, ubuntu-latest) (push) Failing after 35s
Tests / test (1.25.x, windows-latest) (push) Has been cancelled
Tests / test (1.26.x, macos-latest) (push) Has been cancelled
Tests / test (1.26.x, windows-latest) (push) Has been cancelled
Tests / test (1.24.x, macos-latest) (push) Has been cancelled
Tests / test (1.24.x, windows-latest) (push) Has been cancelled
Tests / test (1.25.x, macos-latest) (push) Has been cancelled
Some checks failed
Coverage / coverage (push) Failing after 6s
Tests / test (1.24.x, ubuntu-latest) (push) Failing after 42s
Tests / test (1.26.x, ubuntu-latest) (push) Failing after 38s
Tests / test (1.25.x, ubuntu-latest) (push) Failing after 35s
Tests / test (1.25.x, windows-latest) (push) Has been cancelled
Tests / test (1.26.x, macos-latest) (push) Has been cancelled
Tests / test (1.26.x, windows-latest) (push) Has been cancelled
Tests / test (1.24.x, macos-latest) (push) Has been cancelled
Tests / test (1.24.x, windows-latest) (push) Has been cancelled
Tests / test (1.25.x, macos-latest) (push) Has been cancelled
This commit is contained in:
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user