Add tests

This commit is contained in:
mattn
2013-09-03 19:36:33 +09:00
parent 8b2ef7351f
commit 6176b90b70
2 changed files with 164 additions and 0 deletions

View File

@@ -30,5 +30,8 @@ func TestFailures(t *testing.T) {
if err != ErrNotADB {
t.Error("wrong error code for corrupted DB")
}
if err.Error() == "" {
t.Error("wrong error string for corrupted DB")
}
db.Close()
}