Moved Version Test

This commit is contained in:
Gert-Jan Timmer 2018-06-20 22:51:13 +02:00
parent 203ba1b028
commit 026dd10f0d
2 changed files with 19 additions and 7 deletions

View File

@ -1083,13 +1083,6 @@ func TestDateTimeLocal(t *testing.T) {
}
}
func TestVersion(t *testing.T) {
s, n, id := Version()
if s == "" || n == 0 || id == "" {
t.Errorf("Version failed %q, %d, %q\n", s, n, id)
}
}
func TestStringContainingZero(t *testing.T) {
tempFilename := TempFilename(t)
defer os.Remove(tempFilename)

19
driver/util_test.go Normal file
View File

@ -0,0 +1,19 @@
// Copyright (C) 2018 The Go-SQLite3 Authors.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// +build cgo
package sqlite3
import (
"testing"
)
func TestVersion(t *testing.T) {
s, n, id := Version()
if s == "" || n == 0 || id == "" {
t.Errorf("Version failed %q, %d, %q\n", s, n, id)
}
}