Rename AddValue
This commit is contained in:
parent
d87e227ff3
commit
447a835b93
13 changed files with 61 additions and 61 deletions
|
|
@ -23,7 +23,7 @@ import (
|
|||
// Make sure that tags work on the And.
|
||||
func TestTag(t *testing.T) {
|
||||
fix1 := newFixed()
|
||||
fix1.AddValue(234)
|
||||
fix1.Add(234)
|
||||
fix1.AddTag("foo")
|
||||
and := NewAnd()
|
||||
and.AddSubIterator(fix1)
|
||||
|
|
@ -56,14 +56,14 @@ func TestTag(t *testing.T) {
|
|||
// Do a simple itersection of fixed values.
|
||||
func TestAndAndFixedIterators(t *testing.T) {
|
||||
fix1 := newFixed()
|
||||
fix1.AddValue(1)
|
||||
fix1.AddValue(2)
|
||||
fix1.AddValue(3)
|
||||
fix1.AddValue(4)
|
||||
fix1.Add(1)
|
||||
fix1.Add(2)
|
||||
fix1.Add(3)
|
||||
fix1.Add(4)
|
||||
fix2 := newFixed()
|
||||
fix2.AddValue(3)
|
||||
fix2.AddValue(4)
|
||||
fix2.AddValue(5)
|
||||
fix2.Add(3)
|
||||
fix2.Add(4)
|
||||
fix2.Add(5)
|
||||
and := NewAnd()
|
||||
and.AddSubIterator(fix1)
|
||||
and.AddSubIterator(fix2)
|
||||
|
|
@ -97,14 +97,14 @@ func TestAndAndFixedIterators(t *testing.T) {
|
|||
// but there should be nothing to Next()
|
||||
func TestNonOverlappingFixedIterators(t *testing.T) {
|
||||
fix1 := newFixed()
|
||||
fix1.AddValue(1)
|
||||
fix1.AddValue(2)
|
||||
fix1.AddValue(3)
|
||||
fix1.AddValue(4)
|
||||
fix1.Add(1)
|
||||
fix1.Add(2)
|
||||
fix1.Add(3)
|
||||
fix1.Add(4)
|
||||
fix2 := newFixed()
|
||||
fix2.AddValue(5)
|
||||
fix2.AddValue(6)
|
||||
fix2.AddValue(7)
|
||||
fix2.Add(5)
|
||||
fix2.Add(6)
|
||||
fix2.Add(7)
|
||||
and := NewAnd()
|
||||
and.AddSubIterator(fix1)
|
||||
and.AddSubIterator(fix2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue