Add test for Version

This commit is contained in:
mattn 2015-01-26 18:43:28 +09:00
parent a528a30852
commit 5e6658a5c8
1 changed files with 7 additions and 0 deletions

View File

@ -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)
}
}