aboutsummaryrefslogtreecommitdiff
path: root/error_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'error_test.go')
-rw-r--r--error_test.go7
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 {