Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Unified Diff: third_party/sqlite/sqlite-src-3170000/test/fts3expr5.test

Issue 2747283002: [sql] Import reference version of SQLite 3.17.. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3170000/test/fts3expr5.test
diff --git a/third_party/sqlite/sqlite-src-3170000/test/fts3expr5.test b/third_party/sqlite/sqlite-src-3170000/test/fts3expr5.test
new file mode 100644
index 0000000000000000000000000000000000000000..1e0985108e9687b0e746b625cc1dba70ccb26e9d
--- /dev/null
+++ b/third_party/sqlite/sqlite-src-3170000/test/fts3expr5.test
@@ -0,0 +1,48 @@
+# 2006 September 9
+#
+# The author disclaims copyright to this source code. In place of
+# a legal notice, here is a blessing:
+#
+# May you do good and not evil.
+# May you find forgiveness for yourself and forgive others.
+# May you share freely, never taking more than you give.
+#
+#*************************************************************************
+# This file implements regression tests for SQLite library. The
+# focus of this script is testing the FTS3 module.
+#
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+set testprefix fts3expr5
+
+# If SQLITE_ENABLE_FTS3 is defined, omit this file.
+ifcapable !fts3 {
+ finish_test
+ return
+}
+
+#-------------------------------------------------------------------------
+# Various forms of empty phrase expressions.
+#
+do_execsql_test 1.0 {
+ CREATE VIRTUAL TABLE t0 USING fts3(x);
+ SELECT rowid FROM t0 WHERE x MATCH '';
+} {}
+do_execsql_test 1.1 {
+ SELECT rowid FROM t0 WHERE x MATCH '""';
+} {}
+do_execsql_test 1.2 {
+ SELECT rowid FROM t0 WHERE x MATCH '"" ""';
+} {}
+do_execsql_test 1.3 {
+ SELECT rowid FROM t0 WHERE x MATCH '"" OR ""';
+} {}
+do_execsql_test 1.4 {
+ SELECT rowid FROM t0 WHERE x MATCH '"" NOT ""';
+} {}
+do_execsql_test 1.5 {
+ SELECT rowid FROM t0 WHERE x MATCH '""""';
+} {}
+
+finish_test
« no previous file with comments | « third_party/sqlite/sqlite-src-3170000/test/fts3expr4.test ('k') | third_party/sqlite/sqlite-src-3170000/test/fts3fault.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698