tdb/constraint_elementsnotnull_test.go
2020-04-15 23:53:50 -05:00

14 lines
277 B
Go

package tdb
import (
"testing"
)
func TestElementsNotNullConstraint(t *testing.T) {
setupTestDb()
defer cleanupTestDb()
_, err := tdb.TEST_ArrayHas.Create(&TEST_ArrayHas{MainIds: []uint64{0}})
assertNotNil(t, err, "Expected error while inserting nil value in array")
}