Add test for error == nil

This commit is contained in:
mattn 2014-01-29 09:02:22 +09:00
parent 79fb9332c1
commit dfec358c75
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ import (
"testing" "testing"
) )
func TestSimpleError(t *testing.T) {
if ErrWarning.Error() != "" {
t.Error("wrong error code for corrupted DB")
}
}
func TestCorruptDbErrors(t *testing.T) { func TestCorruptDbErrors(t *testing.T) {
dirName, err := ioutil.TempDir("", "sqlite3") dirName, err := ioutil.TempDir("", "sqlite3")
if err != nil { if err != nil {