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

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

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « third_party/sqlite/src/test/fts3aa.test ('k') | third_party/sqlite/src/test/fts3conf.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/fts3aa.test ('k') | third_party/sqlite/src/test/fts3conf.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698