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

Side by Side Diff: third_party/sqlite/src/test/fts3ag.test

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. 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 unified diff | Download patch
OLDNEW
1 # 2006 October 19 1 # 2006 October 19
2 # 2 #
3 # The author disclaims copyright to this source code. 3 # The author disclaims copyright to this source code.
4 # 4 #
5 #************************************************************************* 5 #*************************************************************************
6 # This file implements regression tests for SQLite library. The focus 6 # This file implements regression tests for SQLite library. The focus
7 # of this script is testing handling of edge cases for various doclist 7 # of this script is testing handling of edge cases for various doclist
8 # merging functions in the FTS3 module query logic. 8 # merging functions in the FTS3 module query logic.
9 # 9 #
10 # $Id: fts3ag.test,v 1.2 2007/11/16 00:23:08 shess Exp $ 10 # $Id: fts3ag.test,v 1.2 2007/11/16 00:23:08 shess Exp $
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } {} 71 } {}
72 72
73 # No support for all-except queries. 73 # No support for all-except queries.
74 do_test fts3ag-1.10 { 74 do_test fts3ag-1.10 {
75 catchsql {SELECT rowid FROM t1 WHERE t1 MATCH '-this -something'} 75 catchsql {SELECT rowid FROM t1 WHERE t1 MATCH '-this -something'}
76 } {1 {malformed MATCH expression: [-this -something]}} 76 } {1 {malformed MATCH expression: [-this -something]}}
77 77
78 # Test that docListOrMerge() correctly handles reaching the end of one 78 # Test that docListOrMerge() correctly handles reaching the end of one
79 # doclist before it reaches the end of the other. 79 # doclist before it reaches the end of the other.
80 do_test fts3ag-1.11 { 80 do_test fts3ag-1.11 {
81 breakpoint
82 execsql {SELECT rowid FROM t1 WHERE t1 MATCH 'this OR also'} 81 execsql {SELECT rowid FROM t1 WHERE t1 MATCH 'this OR also'}
83 } {1 2} 82 } {1 2}
84 do_test fts3ag-1.12 { 83 do_test fts3ag-1.12 {
85 execsql {SELECT rowid FROM t1 WHERE t1 MATCH 'also OR this'} 84 execsql {SELECT rowid FROM t1 WHERE t1 MATCH 'also OR this'}
86 } {1 2} 85 } {1 2}
87 86
88 # Empty left and right in docListOrMerge(). Each term matches neither 87 # Empty left and right in docListOrMerge(). Each term matches neither
89 # row, and when combined there was an assertion failure. 88 # row, and when combined there was an assertion failure.
90 do_test fts3ag-1.13 { 89 do_test fts3ag-1.13 {
91 execsql {SELECT rowid FROM t1 WHERE t1 MATCH 'something OR nothing'} 90 execsql {SELECT rowid FROM t1 WHERE t1 MATCH 'something OR nothing'}
92 } {} 91 } {}
93 92
94 finish_test 93 finish_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698