diff options
author | mattn <mattn.jp@gmail.com> | 2013-09-03 19:36:33 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2013-09-03 19:36:33 +0900 |
commit | 6176b90b703dad947c45733c414039866113d6bf (patch) | |
tree | 3c031f4266718bfa7c57d99c07244157889b85c1 /error_test.go | |
parent | Remove -v (diff) | |
download | golite-6176b90b703dad947c45733c414039866113d6bf.tar.gz golite-6176b90b703dad947c45733c414039866113d6bf.tar.xz |
Add tests
Diffstat (limited to 'error_test.go')
-rw-r--r-- | error_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/error_test.go b/error_test.go index 197b2f0..afa7b27 100644 --- a/error_test.go +++ b/error_test.go @@ -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() } |