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/11/07 03:48:55 UTC
[06/15] 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/19e0715d
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/19e0715d
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/19e0715d
Branch: refs/heads/master
Commit: 19e0715daf30769ee15045bef0a549390af16b65
Parents: 07fa7b0
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Fri Oct 30 12:32:28 2015 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Sat Oct 31 15:31:16 2015 -0700
----------------------------------------------------------------------
go/lucy/index_test.go | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/19e0715d/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")
+ }
+}