(t *testing.T)
| 17 | ) |
| 18 | |
| 19 | func TestSimpleError(t *testing.T) { |
| 20 | e := ErrError.Error() |
| 21 | if e != "SQL logic error or missing database" && e != "SQL logic error" { |
| 22 | t.Error("wrong error code: " + e) |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | func TestCorruptDbErrors(t *testing.T) { |
| 27 | dirName, err := ioutil.TempDir("", "sqlite3") |