-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapped_dll_test.go
21 lines (18 loc) · 1.09 KB
/
mapped_dll_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package streedb
import "testing"
func TestMappedDLL(t *testing.T) {
dll := MapDLL[int64, Entry[int64], *Kv]{}
emptyTs := []int64{}
dll.SetMax(NewKv("b", "idx1", emptyTs, []int32{}), NewKv("b", "idx1", emptyTs, []int32{}))
dll.SetMax(NewKv("b", "idx1", emptyTs, []int32{}), NewKv("b", "idx1", emptyTs, []int32{}))
dll.SetMax(NewKv("b", "idx1", emptyTs, []int32{}), NewKv("b", "idx1", emptyTs, []int32{}))
dll.SetMax(NewKv("b", "idx1", emptyTs, []int32{}), NewKv("b", "idx1", emptyTs, []int32{}))
dll.SetMax(NewKv("b", "idx1", emptyTs, []int32{}), NewKv("b", "idx1", emptyTs, []int32{}))
dll.Remove(NewKv("b", "idx1", emptyTs, []int32{}))
dll.Remove(NewKv("b", "idx1", emptyTs, []int32{}))
dll = MapDLL[int64, Entry[int64], *Kv]{}
dll.SetMin(NewKv("b", "idx1", emptyTs, []int32{}), NewKv("b", "idx1", emptyTs, []int32{}))
dll.SetMin(NewKv("b", "idx1", emptyTs, []int32{}), NewKv("b", "idx1", emptyTs, []int32{}))
dll.SetMin(NewKv("b", "idx1", emptyTs, []int32{}), NewKv("b", "idx1", emptyTs, []int32{}))
dll.SetMin(NewKv("b", "idx1", emptyTs, []int32{}), NewKv("b", "idx1", emptyTs, []int32{}))
}