| OLD | NEW |
| 1 # 2007 June 21 | 1 # 2007 June 21 |
| 2 # | 2 # |
| 3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
| 4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
| 5 # | 5 # |
| 6 # May you do good and not evil. | 6 # May you do good and not evil. |
| 7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
| 8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
| 9 # | 9 # |
| 10 #************************************************************************* | 10 #************************************************************************* |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 set fmt [string repeat %c [llength $codepoint_list]] | 179 set fmt [string repeat %c [llength $codepoint_list]] |
| 180 eval [list format $fmt] $codepoint_list | 180 eval [list format $fmt] $codepoint_list |
| 181 } | 181 } |
| 182 | 182 |
| 183 do_test 5.2 { | 183 do_test 5.2 { |
| 184 set str [cp_to_str {19968 26085 32822 32645 27874 23433 20986}] | 184 set str [cp_to_str {19968 26085 32822 32645 27874 23433 20986}] |
| 185 execsql { INSERT INTO x1 VALUES($str) } | 185 execsql { INSERT INTO x1 VALUES($str) } |
| 186 } {} | 186 } {} |
| 187 } | 187 } |
| 188 | 188 |
| 189 | |
| 190 do_test fts3token-internal { | 189 do_test fts3token-internal { |
| 191 execsql { SELECT fts3_tokenizer_internal_test() } | 190 execsql { SELECT fts3_tokenizer_internal_test() } |
| 192 } {ok} | 191 } {ok} |
| 193 | 192 |
| 193 #------------------------------------------------------------------------- |
| 194 # Test empty tokenizer names. |
| 195 # |
| 196 do_catchsql_test 6.1.1 { |
| 197 CREATE VIRTUAL TABLE t3 USING fts4(tokenize=""); |
| 198 } {1 {unknown tokenizer: }} |
| 199 do_catchsql_test 6.1.2 { |
| 200 CREATE VIRTUAL TABLE t3 USING fts4(tokenize=); |
| 201 } {1 {unknown tokenizer: }} |
| 202 do_catchsql_test 6.1.3 { |
| 203 CREATE VIRTUAL TABLE t3 USING fts4(tokenize=" "); |
| 204 } {1 {unknown tokenizer: }} |
| 205 |
| 206 do_catchsql_test 6.2.1 { |
| 207 SELECT fts3_tokenizer(NULL); |
| 208 } {1 {unknown tokenizer: }} |
| 209 do_catchsql_test 6.2.2 { |
| 210 SELECT fts3_tokenizer(NULL, X'1234567812345678'); |
| 211 } {1 {argument type mismatch}} |
| 212 do_catchsql_test 6.2.3 { |
| 213 SELECT fts3_tokenizer(NULL, X'12345678'); |
| 214 } {1 {argument type mismatch}} |
| 215 |
| 194 | 216 |
| 195 finish_test | 217 finish_test |
| OLD | NEW |