Address review comments
This commit is contained in:
parent
430ff507f0
commit
5eed4d9667
19 changed files with 125 additions and 139 deletions
|
|
@ -121,15 +121,15 @@ func TestVCIContains(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestComparisonIteratorErr(t *testing.T) {
|
||||
retErr := errors.New("unique")
|
||||
errIt := newTestIterator(false, retErr)
|
||||
wantErr := errors.New("unique")
|
||||
errIt := newTestIterator(false, wantErr)
|
||||
|
||||
vc := NewComparison(errIt, compareLT, int64(2), simpleStore)
|
||||
|
||||
if vc.Next() != false {
|
||||
t.Errorf("Comparison iterator did not pass through initial 'false'")
|
||||
}
|
||||
if vc.Err() != retErr {
|
||||
if vc.Err() != wantErr {
|
||||
t.Errorf("Comparison iterator did not pass through underlying Err")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue