From 026dd10f0d41bffe8ded73cf2324ca2fabbfda00 Mon Sep 17 00:00:00 2001 From: Gert-Jan Timmer Date: Wed, 20 Jun 2018 22:51:13 +0200 Subject: [PATCH] Moved Version Test --- driver/driver_test.go | 7 ------- driver/util_test.go | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 driver/util_test.go diff --git a/driver/driver_test.go b/driver/driver_test.go index 1a44b5f..bb6eefd 100644 --- a/driver/driver_test.go +++ b/driver/driver_test.go @@ -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) diff --git a/driver/util_test.go b/driver/util_test.go new file mode 100644 index 0000000..8582e0b --- /dev/null +++ b/driver/util_test.go @@ -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) + } +}