diff options
author | mattn <mattn.jp@gmail.com> | 2014-01-29 09:02:22 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2014-01-29 09:02:22 +0900 |
commit | dfec358c75eb32070885d4eb4cfbbb99948fc558 (patch) | |
tree | a266dcd7b2cbee37e496260d8bcab55674a2b377 | |
parent | Add example that query github repositories (diff) | |
download | golite-dfec358c75eb32070885d4eb4cfbbb99948fc558.tar.gz golite-dfec358c75eb32070885d4eb4cfbbb99948fc558.tar.xz |
Add test for error == nil
-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 { |