lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [06/15] lucy git commit: Test Go bindings for BitVecDelDocs.
Date Sat, 07 Nov 2015 02:48:55 GMT
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 <marvin@rectangular.com>
Authored: Fri Oct 30 12:32:28 2015 -0700
Committer: Marvin Humphrey <marvin@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")
+	}
+}


Mime
View raw message