lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [1/5] lucy git commit: Test Architecture Go bindings.
Date Thu, 15 Oct 2015 21:24:24 GMT
Repository: lucy
Updated Branches:
  refs/heads/master f533036a5 -> 245ed3b36


Test Architecture Go bindings.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/20fd9af2
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/20fd9af2
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/20fd9af2

Branch: refs/heads/master
Commit: 20fd9af22ca7fa21de69d939a5a9bf85bb31592b
Parents: 9dc850c
Author: Marvin Humphrey <marvin@rectangular.com>
Authored: Mon Oct 5 19:05:06 2015 -0700
Committer: Marvin Humphrey <marvin@rectangular.com>
Committed: Mon Oct 5 19:06:48 2015 -0700

----------------------------------------------------------------------
 go/lucy/plan_test.go | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/20fd9af2/go/lucy/plan_test.go
----------------------------------------------------------------------
diff --git a/go/lucy/plan_test.go b/go/lucy/plan_test.go
index be535c9..20b2935 100644
--- a/go/lucy/plan_test.go
+++ b/go/lucy/plan_test.go
@@ -200,3 +200,22 @@ func TestStringTypeMisc(t *testing.T) {
 		t.Errorf("MakeSimilarity: %v", sim)
 	}
 }
+
+func TestArchitectureBasics(t *testing.T) {
+	arch := NewArchitecture()
+
+	if got := arch.IndexInterval(); got < 0 {
+		t.Errorf("IndexInterval: %d", got)
+	}
+	if got := arch.SkipInterval(); got < 0 {
+		t.Errorf("IndexInterval: %d", got)
+	}
+
+	if sim, ok := arch.MakeSimilarity().(Similarity); !ok {
+		t.Errorf("MakeSimilarity: %v", sim)
+	}
+
+	if !arch.Equals(arch) {
+		t.Error("Equals")
+	}
+}


Mime
View raw message