diff options
-rw-r--r-- | error_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/error_test.go b/error_test.go index bf7bb3c..b61085d 100644 --- a/error_test.go +++ b/error_test.go @@ -8,6 +8,12 @@ import ( "testing" ) +func TestSimpleError(t *testing.T) { + if ErrWarning.Error() != "" { + t.Error("wrong error code for corrupted DB") + } +} + func TestCorruptDbErrors(t *testing.T) { dirName, err := ioutil.TempDir("", "sqlite3") if err != nil { |