diff options
author | danielk1977 <danielk1977@noemail.net> | 2005-01-21 11:55:25 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2005-01-21 11:55:25 +0000 |
commit | 576ec6b32afec20b7efb8dd95ae436182ad0da4f (patch) | |
tree | 1fdfe83b23a2ec04d0da6af68a4f978cf5b37a15 /test/expr.test | |
parent | 93758c8dccf91b009baf109bf456daa49e7e5348 (diff) | |
download | sqlite-576ec6b32afec20b7efb8dd95ae436182ad0da4f.tar.gz sqlite-576ec6b32afec20b7efb8dd95ae436182ad0da4f.zip |
Improve test coverage for minimum feature builds. (CVS 2254)
FossilOrigin-Name: 9c4d0e13e8c5f3fc4d7fd8f495898372293f7fad
Diffstat (limited to 'test/expr.test')
-rw-r--r-- | test/expr.test | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/expr.test b/test/expr.test index 39f1d38fe..c23b5687d 100644 --- a/test/expr.test +++ b/test/expr.test @@ -11,7 +11,7 @@ # This file implements regression tests for SQLite library. The # focus of this file is testing expressions. # -# $Id: expr.test,v 1.42 2005/01/21 03:12:16 danielk1977 Exp $ +# $Id: expr.test,v 1.43 2005/01/21 11:55:27 danielk1977 Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl @@ -553,4 +553,12 @@ do_test expr-9.1 { execsql {SELECT round(-('-'||'123'))} } 123 +# Test an error message that can be generated by the LIKE expression +do_test expr-10.1 { + catchsql {SELECT 'abc' LIKE 'abc' ESCAPE ''} +} {1 {ESCAPE expression must be a single character}} +do_test expr-10.2 { + catchsql {SELECT 'abc' LIKE 'abc' ESCAPE 'ab'} +} {1 {ESCAPE expression must be a single character}} + finish_test |