Files
sqlite3/tests/compile/empty/compile_test.go
Nuno Cruces a33b8d3459 Tests.
2023-02-10 16:42:49 +00:00

16 lines
253 B
Go

package compile_empty
import (
"testing"
"github.com/ncruces/go-sqlite3"
)
func TestCompile_empty(t *testing.T) {
sqlite3.Binary = []byte("\x00asm\x01\x00\x00\x00")
_, err := sqlite3.Open(":memory:")
if err == nil {
t.Error("want error")
}
}