You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2015/10/31 22:02:56 UTC
[19/20] lucy git commit: Test Go bindings for BitVecDelDocs.
Test Go bindings for BitVecDelDocs.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/e264f6f5
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/e264f6f5
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/e264f6f5
Branch: refs/heads/LUCY-282-test-index-go-pt1
Commit: e264f6f512a515705c4fa4595b67e3cdd298a039
Parents: fdb228e
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Fri Oct 30 12:32:28 2015 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Fri Oct 30 12:32:28 2015 -0700
----------------------------------------------------------------------
go/lucy/index_test.go | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/e264f6f5/go/lucy/index_test.go
----------------------------------------------------------------------
diff --git a/go/lucy/index_test.go b/go/lucy/index_test.go
index 826bd2b..ba9a009 100644
--- a/go/lucy/index_test.go
+++ b/go/lucy/index_test.go
@@ -283,3 +283,14 @@ func TestTermInfoMisc(t *testing.T) {
t.Errorf("Reset: expected 0, got %d", got)
}
}
+
+func TestBitVecDelDocsMisc(t *testing.T) {
+ folder := NewRAMFolder("")
+ out, _ := folder.OpenOut("bits")
+ out.WriteU32(0xDEADBEEF)
+ out.Close()
+ bv := NewBitVecDelDocs(folder, "bits")
+ if !bv.Get(31) {
+ t.Errorf("Get returned false")
+ }
+}