diff options
Diffstat (limited to 'error_test.go')
-rw-r--r-- | error_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/error_test.go b/error_test.go index bf7bb3c..a47025a 100644 --- a/error_test.go +++ b/error_test.go @@ -8,6 +8,13 @@ import ( "testing" ) +func TestSimpleError(t *testing.T) { + e := ErrError.Error() + if e != "SQL logic error or missing database" { + t.Error("wrong error code:" + e) + } +} + func TestCorruptDbErrors(t *testing.T) { dirName, err := ioutil.TempDir("", "sqlite3") if err != nil { |