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 <[email protected]>
Authored: Fri Oct 30 12:32:28 2015 -0700
Committer: Marvin Humphrey <[email protected]>
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")
+       }
+}

Reply via email to