Commit a8679c6d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent fb34c8b7
......@@ -62,14 +62,17 @@ func TestRangedKeySet(t *testing.T) {
}
S := &RangedKeySet{}
for i := 0; i < l/2; i++ {
// construct .rangev directly, not via AddRange
// construct .entryv directly, not via AddRange
lo := kv[2*i]
hi := kv[2*i+1]
hi_ := hi
if hi_ != oo {
hi_--
}
S.rangev = append(S.rangev, KeyRange{lo, hi_})
S.m.entryv = append(S.m.entryv, _RangedMap_voidEntry{
KeyRange{lo, hi_},
void{},
})
}
S.verify()
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