From 5e6658a5c802ef478bcaaccad2103ab2a0cda562 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 26 Jan 2015 18:43:28 +0900 Subject: [PATCH] Add test for Version --- sqlite3_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sqlite3_test.go b/sqlite3_test.go index 3e50258..7df2169 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -743,3 +743,10 @@ func TestStress(t *testing.T) { db.Close() } } + +func TestVersion(t *testing.T) { + s, n, id, := Version() + if s == "" || n == 0 || id == 0 { + t.Errorf("Version failed %q, %d, %q\n", s, n, id) + } +}