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

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

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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 # 2012 March 01 1 # 2012 March 01
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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 for {set i 0} {$i < 50} {incr i} { 354 for {set i 0} {$i < 50} {incr i} {
355 execsql { 355 execsql {
356 INSERT INTO t4(docid, content, lid) VALUES($i, 'The Quick Brown Fox', $i) 356 INSERT INTO t4(docid, content, lid) VALUES($i, 'The Quick Brown Fox', $i)
357 } 357 }
358 } 358 }
359 } 359 }
360 360
361 do_test 4.1.0 { 361 do_test 4.1.0 {
362 reset_db 362 reset_db
363 set ptr [fts3_test_tokenizer] 363 set ptr [fts3_test_tokenizer]
364 sqlite3_db_config db SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1
364 execsql { SELECT fts3_tokenizer('testtokenizer', $ptr) } 365 execsql { SELECT fts3_tokenizer('testtokenizer', $ptr) }
365 build_multilingual_db_2 db 366 build_multilingual_db_2 db
366 } {} 367 } {}
367 do_execsql_test 4.1.1 { 368 do_execsql_test 4.1.1 {
368 SELECT docid FROM t4 WHERE t4 MATCH 'quick'; 369 SELECT docid FROM t4 WHERE t4 MATCH 'quick';
369 } {0} 370 } {0}
370 do_execsql_test 4.1.2 { 371 do_execsql_test 4.1.2 {
371 SELECT docid FROM t4 WHERE t4 MATCH 'quick' AND lid=1; 372 SELECT docid FROM t4 WHERE t4 MATCH 'quick' AND lid=1;
372 } {} 373 } {}
373 do_execsql_test 4.1.3 { 374 do_execsql_test 4.1.3 {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 474
474 do_execsql_test 5.4.$lid.4 { 475 do_execsql_test 5.4.$lid.4 {
475 INSERT INTO t6(t6) VALUES('merge=100,3'); 476 INSERT INTO t6(t6) VALUES('merge=100,3');
476 INSERT INTO t6(t6) VALUES('merge=100,3'); 477 INSERT INTO t6(t6) VALUES('merge=100,3');
477 SELECT docid FROM t6 WHERE t6 MATCH '"zero zero"' AND lid=$lid; 478 SELECT docid FROM t6 WHERE t6 MATCH '"zero zero"' AND lid=$lid;
478 } {1 2 5} 479 } {1 2 5}
479 480
480 do_execsql_test 5.4.$lid.5 { 481 do_execsql_test 5.4.$lid.5 {
481 SELECT count(*) FROM t6_segdir; 482 SELECT count(*) FROM t6_segdir;
482 SELECT count(*) FROM t6_segments; 483 SELECT count(*) FROM t6_segments;
483 } {4 4} 484 } {1 2}
484 } 485 }
485 finish_test 486 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/fts4growth2.test ('k') | third_party/sqlite/src/test/fts4merge.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698