From 6176b90b703dad947c45733c414039866113d6bf Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 3 Sep 2013 19:36:33 +0900 Subject: Add tests --- error_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'error_test.go') 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() } -- cgit v1.2.3