Commit a8679c6d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent fb34c8b7
...@@ -62,14 +62,17 @@ func TestRangedKeySet(t *testing.T) { ...@@ -62,14 +62,17 @@ func TestRangedKeySet(t *testing.T) {
} }
S := &RangedKeySet{} S := &RangedKeySet{}
for i := 0; i < l/2; i++ { for i := 0; i < l/2; i++ {
// construct .rangev directly, not via AddRange // construct .entryv directly, not via AddRange
lo := kv[2*i] lo := kv[2*i]
hi := kv[2*i+1] hi := kv[2*i+1]
hi_ := hi hi_ := hi
if hi_ != oo { if hi_ != oo {
hi_-- hi_--
} }
S.rangev = append(S.rangev, KeyRange{lo, hi_}) S.m.entryv = append(S.m.entryv, _RangedMap_voidEntry{
KeyRange{lo, hi_},
void{},
})
} }
S.verify() S.verify()
return S return S
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment