| 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 # FTS3 module. Unfortunately, this code isn't a really principled set | 8 # FTS3 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 db eval {CREATE VIRTUAL TABLE t4 USING fts3(content)} | 65 db eval {CREATE VIRTUAL TABLE t4 USING fts3(content)} |
| 66 db eval "INSERT INTO t4 (content) VALUES ('$phrase1')" | 66 db eval "INSERT INTO t4 (content) VALUES ('$phrase1')" |
| 67 db eval "INSERT INTO t4 (content) VALUES ('$phrase2')" | 67 db eval "INSERT INTO t4 (content) VALUES ('$phrase2')" |
| 68 | 68 |
| 69 do_test fts3al-1.4 { | 69 do_test fts3al-1.4 { |
| 70 execsql {SELECT rowid, length(snippet(t4)) FROM t4 WHERE t4 MATCH 'target'} | 70 execsql {SELECT rowid, length(snippet(t4)) FROM t4 WHERE t4 MATCH 'target'} |
| 71 } {1 241 2 247} | 71 } {1 241 2 247} |
| 72 | 72 |
| 73 finish_test | 73 finish_test |
| OLD | NEW |