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

Unified Diff: third_party/sqlite/sqlite-src-3080704/test/fts1n.test

Issue 949043002: Add //third_party/sqlite to dirs_to_snapshot, remove net_sql.patch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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-3080704/test/fts1n.test
diff --git a/third_party/sqlite/sqlite-src-3080704/test/fts1n.test b/third_party/sqlite/sqlite-src-3080704/test/fts1n.test
new file mode 100644
index 0000000000000000000000000000000000000000..2f102b4e2cd758200a00b72a1723c4184731bcae
--- /dev/null
+++ b/third_party/sqlite/sqlite-src-3080704/test/fts1n.test
@@ -0,0 +1,45 @@
+# 2007 July 24
+#
+# 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 FTS1 module for errors in the handling
+# of SQLITE_SCHEMA.
+#
+# $Id: fts1n.test,v 1.1 2007/07/25 00:38:06 shess Exp $
+#
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+
+# If SQLITE_ENABLE_FTS1 is not defined, omit this file.
+ifcapable !fts1 {
+ finish_test
+ return
+}
+
+do_test fts1m-1.1 {
+ execsql {
+ CREATE VIRTUAL TABLE t1 USING fts1(a, b, c);
+ INSERT INTO t1(a, b, c) VALUES('one three four', 'one four', 'one two');
+ SELECT a, b, c FROM t1 WHERE c MATCH 'two';
+ }
+} {{one three four} {one four} {one two}}
+
+# This test was crashing at one point.
+#
+do_test fts1m-1.2 {
+ execsql {
+ SELECT a, b, c FROM t1 WHERE c MATCH 'two';
+ CREATE TABLE t3(a, b, c);
+ SELECT a, b, c FROM t1 WHERE c MATCH 'two';
+ }
+} {{one three four} {one four} {one two} {one three four} {one four} {one two}}
+
+finish_test
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/fts1m.test ('k') | third_party/sqlite/sqlite-src-3080704/test/fts1o.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698