OLD | NEW |
1 # 2007 March 28 | 1 # 2007 March 28 |
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 isspace/isalnum/tolower problems with the | 7 # of this script is testing isspace/isalnum/tolower problems with the |
8 # FTS1 module. Unfortunately, this code isn't a really principled set | 8 # FTS1 module. Unfortunately, this code isn't a really principled set |
9 # of tests, because it is impossible to know where new uses of these | 9 # of tests, because it is impossible to know where new uses of these |
10 # functions might appear. | 10 # functions might appear. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 db eval {CREATE VIRTUAL TABLE t4 USING fts1(content)} | 61 db eval {CREATE VIRTUAL TABLE t4 USING fts1(content)} |
62 db eval "INSERT INTO t4 (content) VALUES ('$phrase1')" | 62 db eval "INSERT INTO t4 (content) VALUES ('$phrase1')" |
63 db eval "INSERT INTO t4 (content) VALUES ('$phrase2')" | 63 db eval "INSERT INTO t4 (content) VALUES ('$phrase2')" |
64 | 64 |
65 do_test fts1k-1.4 { | 65 do_test fts1k-1.4 { |
66 execsql {SELECT rowid, length(snippet(t4)) FROM t4 WHERE t4 MATCH 'target'} | 66 execsql {SELECT rowid, length(snippet(t4)) FROM t4 WHERE t4 MATCH 'target'} |
67 } {1 111 2 117} | 67 } {1 111 2 117} |
68 | 68 |
69 finish_test | 69 finish_test |
OLD | NEW |