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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/fts3atoken.test
diff --git a/third_party/sqlite/src/test/fts3atoken.test b/third_party/sqlite/src/test/fts3atoken.test
index b7722c7d041b3509bee6891b68da04ea82067530..88e3d4f72bccf786867075ed431633374a4de2cd 100644
--- a/third_party/sqlite/src/test/fts3atoken.test
+++ b/third_party/sqlite/src/test/fts3atoken.test
@@ -186,10 +186,32 @@ ifcapable icu {
} {}
}
-
do_test fts3token-internal {
execsql { SELECT fts3_tokenizer_internal_test() }
} {ok}
+#-------------------------------------------------------------------------
+# Test empty tokenizer names.
+#
+do_catchsql_test 6.1.1 {
+ CREATE VIRTUAL TABLE t3 USING fts4(tokenize="");
+} {1 {unknown tokenizer: }}
+do_catchsql_test 6.1.2 {
+ CREATE VIRTUAL TABLE t3 USING fts4(tokenize=);
+} {1 {unknown tokenizer: }}
+do_catchsql_test 6.1.3 {
+ CREATE VIRTUAL TABLE t3 USING fts4(tokenize=" ");
+} {1 {unknown tokenizer: }}
+
+do_catchsql_test 6.2.1 {
+ SELECT fts3_tokenizer(NULL);
+} {1 {unknown tokenizer: }}
+do_catchsql_test 6.2.2 {
+ SELECT fts3_tokenizer(NULL, X'1234567812345678');
+} {1 {argument type mismatch}}
+do_catchsql_test 6.2.3 {
+ SELECT fts3_tokenizer(NULL, X'12345678');
+} {1 {argument type mismatch}}
+
finish_test
« 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