3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #*************************************************************************
13 source [file join [file dirname [info script]] fts5_common.tcl]
14 ifcapable !fts5 { finish_test ; return }
15 set ::testprefix fts5cat
19 CREATE VIRTUAL TABLE t1 USING fts5(x, tokenize="unicode61 categories 'L*'");
20 INSERT INTO t1 VALUES ('Unlike1option2values3and4column5names');
24 SELECT rowid FROM t1('option');
28 CREATE VIRTUAL TABLE t2 USING fts5(x);
29 CREATE VIRTUAL TABLE t2t USING fts5vocab(t2, row);
31 CREATE VIRTUAL TABLE t3 USING fts5(
32 x, tokenize="unicode61 categories 'L* N* Co Mn'"
34 CREATE VIRTUAL TABLE t3t USING fts5vocab(t3, row);
36 CREATE VIRTUAL TABLE t4 USING fts5(
37 x, tokenize="unicode61 categories 'L* N* Co M*'"
39 CREATE VIRTUAL TABLE t4t USING fts5vocab(t4, row);
41 INSERT INTO t2 VALUES ('สนามกีฬา');
42 INSERT INTO t3 VALUES ('สนามกีฬา');
43 INSERT INTO t4 VALUES ('สนามกีฬา');