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

Unified Diff: third_party/sqlite/sqlite-src-3170000/ext/fts5/test/fts5porter2.test

Issue 2747283002: [sql] Import reference version of SQLite 3.17.. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3170000/ext/fts5/test/fts5porter2.test
diff --git a/third_party/sqlite/sqlite-src-3170000/ext/fts5/test/fts5porter2.test b/third_party/sqlite/sqlite-src-3170000/ext/fts5/test/fts5porter2.test
new file mode 100644
index 0000000000000000000000000000000000000000..5e0aeb029f21d397c66de19619fc11e6e520d572
--- /dev/null
+++ b/third_party/sqlite/sqlite-src-3170000/ext/fts5/test/fts5porter2.test
@@ -0,0 +1,70 @@
+# 2014 Dec 20
+#
+# The author disclaims copyright to this source code. In place of
+# a legal notice, here is a blessing:
+#
+# May you do good and not evil.
+# May you find forgiveness for yourself and forgive others.
+# May you share freely, never taking more than you give.
+#
+#***********************************************************************
+#
+# Tests focusing on the fts5 porter stemmer implementation.
+#
+# These are extra tests added to those in fts5porter.test in order to
+# improve test coverage of the porter stemmer implementation.
+#
+
+source [file join [file dirname [info script]] fts5_common.tcl]
+set testprefix fts5porter2
+
+# If SQLITE_ENABLE_FTS5 is defined, omit this file.
+ifcapable !fts5 {
+ finish_test
+ return
+}
+
+set test_vocab {
+ tion tion
+ ation ation
+ vation vation
+ avation avat
+ vion vion
+ ion ion
+ relational relat
+ relation relat
+ relate relat
+ zzz zzz
+ ii ii
+ iiing ii
+ xtional xtional
+ xenci xenci
+ xlogi xlogi
+ realization realiz
+ realize realiz
+ xization xizat
+ capitalism capit
+ talism talism
+ xiveness xive
+ xfulness xful
+ xousness xous
+ xical xical
+ xicate xicat
+ xicity xiciti
+ ies ie
+ eed e
+ eing e
+ s s
+}
+
+set i 0
+foreach {in out} $test_vocab {
+ do_test "1.$i.($in -> $out)" {
+ lindex [sqlite3_fts5_tokenize db porter $in] 0
+ } $out
+ incr i
+}
+
+
+finish_test
+

Powered by Google App Engine
This is Rietveld 408576698