16 lines
304 B
Go
16 lines
304 B
Go
|
package tdb
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestArrayIndexedInsert(t *testing.T) {
|
||
|
setupTestDb()
|
||
|
defer cleanupTestDb()
|
||
|
|
||
|
mid1 := tdb.TEST_Main.CreateOrPanic(&TEST_Main{})
|
||
|
mid2 := tdb.TEST_Main.CreateOrPanic(&TEST_Main{})
|
||
|
|
||
|
tdb.TEST_ArrayHas.CreateOrPanic(&TEST_ArrayHas{MainIds: []uint64{mid1, mid2}})
|
||
|
}
|