~ubuntu-branches/ubuntu/precise/sqlite3/precise-updates

« back to all changes in this revision

Viewing changes to test/fts3ad.test

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-12-11 14:34:09 UTC
  • mfrom: (9.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091211143409-o29fahwmcmyd0vq1
Tags: 3.6.21-2
Run autoreconf to prevent FTBFS with new libtool (closes: #560660).

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
  }
62
62
} {3 {The value is <b>123456789</b>}}
63
63
 
 
64
do_test fts3ad-2.1 {
 
65
  execsql {
 
66
    DROP TABLE t1;
 
67
    CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize    porter);
 
68
    INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
 
69
    SELECT rowid FROM t1 WHERE content MATCH 'run jump';
 
70
  }
 
71
} {1}
 
72
do_test fts3ad-2.2 {
 
73
  execsql {
 
74
    DROP TABLE t1;
 
75
    CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize=   porter);
 
76
    INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
 
77
    SELECT rowid FROM t1 WHERE content MATCH 'run jump';
 
78
  }
 
79
} {1}
 
80
do_test fts3ad-2.3 {
 
81
  execsql {
 
82
    DROP TABLE t1;
 
83
    CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize=   simple);
 
84
    INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
 
85
    SELECT rowid FROM t1 WHERE content MATCH 'run jump';
 
86
  }
 
87
} {}
 
88
do_test fts3ad-2.4 {
 
89
  execsql {
 
90
    DROP TABLE t1;
 
91
    CREATE VIRTUAL TABLE t1 USING fts3(content,   tokenize=   porter);
 
92
    INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
 
93
    SELECT rowid FROM t1 WHERE content MATCH 'run jump';
 
94
  }
 
95
} {1}
 
96
do_test fts3ad-2.5 {
 
97
  execsql {
 
98
    DROP TABLE t1;
 
99
    CREATE VIRTUAL TABLE t1 USING fts3(content,    tokenize =   porter);
 
100
    INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
 
101
    SELECT rowid FROM t1 WHERE content MATCH 'run jump';
 
102
  }
 
103
} {1}
 
104
 
64
105
 
65
106
finish_test