SQLite

Check-in [16cb00adeb]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix typos in test naming (was using 'e' instead of 'f'). (CVS 3655)
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 16cb00adeb3b68220ba2567b86b230bbbf2a0330
User & Date: shess 2007-02-23 00:14:06.000
Context
2007-02-23
03:00
Clarify the documentation on how comparisons occur in an IN operator. Fix the comparison operators when both sides of an IN operator are expressions (ticket #2248). Changes to main.mk for adding FTS2 into the standard build also got mixed in with this check-in by mistake. (CVS 3656) (check-in: da81725ca1 user: drh tags: trunk)
00:14
Fix typos in test naming (was using 'e' instead of 'f'). (CVS 3655) (check-in: 16cb00adeb user: shess tags: trunk)
2007-02-22
23:06
Make the depth of the pushdown automaton stack generated by lemon changable at compile-time using -DYYSTACKDEPTH=<number>. (CVS 3654) (check-in: d8845ac1fb user: drh tags: trunk)
Changes
Side-by-Side Diff Ignore Whitespace Patch
Changes to test/fts1f.test.
1
2
3
4
5
6
7
8
9

10
11
12
13
14
15
16
1
2
3
4
5
6
7
8

9
10
11
12
13
14
15
16








-
+







# 2006 October 19
#
# The author disclaims copyright to this source code.
#
#*************************************************************************
# This file implements regression tests for SQLite library.  The
# focus of this script is testing updates in the FTS1 module.
#
# $Id: fts1f.test,v 1.1 2006/10/19 23:28:35 shess Exp $
# $Id: fts1f.test,v 1.2 2007/02/23 00:14:06 shess Exp $
#

set testdir [file dirname $argv0]
source $testdir/tester.tcl

# If SQLITE_ENABLE_FTS1 is defined, omit this file.
ifcapable !fts1 {
59
60
61
62
63
64
65
66

67
68
69
70

71
72
73
74

75
76
77
78

79
80
81
82

83
84
85
86

87
88
89
90
59
60
61
62
63
64
65

66
67
68
69

70
71
72
73

74
75
76
77

78
79
80
81

82
83
84
85

86
87
88
89
90







-
+



-
+



-
+



-
+



-
+



-
+




  UPDATE t1 SET content = 'update' WHERE rowid = 15;
}

do_test fts1f-1.1 {
  execsql {SELECT COUNT(*) FROM t1}
} {16}

do_test fts1e-2.0 {
do_test fts1f-2.0 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'update'}
} {1 8 15}

do_test fts1e-2.1 {
do_test fts1f-2.1 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'one'}
} {1 3 5 9 11 17 21}

do_test fts1e-2.2 {
do_test fts1f-2.2 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'two'}
} {2 3 6 8 11 14 18 22}

do_test fts1e-2.3 {
do_test fts1f-2.3 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'three'}
} {1 5 6 12 14 20 21 22}

do_test fts1e-2.4 {
do_test fts1f-2.4 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'four'}
} {9 11 12 14}

do_test fts1e-2.5 {
do_test fts1f-2.5 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'five'}
} {8 17 18 20 21 22}

finish_test
Changes to test/fts2f.test.
1
2
3
4
5
6
7
8
9

10
11
12
13
14
15
16
1
2
3
4
5
6
7
8

9
10
11
12
13
14
15
16








-
+







# 2006 October 19
#
# The author disclaims copyright to this source code.
#
#*************************************************************************
# This file implements regression tests for SQLite library.  The
# focus of this script is testing updates in the FTS2 module.
#
# $Id: fts2f.test,v 1.1 2006/10/19 23:36:26 shess Exp $
# $Id: fts2f.test,v 1.2 2007/02/23 00:14:06 shess Exp $
#

set testdir [file dirname $argv0]
source $testdir/tester.tcl

# If SQLITE_ENABLE_FTS2 is defined, omit this file.
ifcapable !fts2 {
59
60
61
62
63
64
65
66

67
68
69
70

71
72
73
74

75
76
77
78

79
80
81
82

83
84
85
86

87
88
89
90
59
60
61
62
63
64
65

66
67
68
69

70
71
72
73

74
75
76
77

78
79
80
81

82
83
84
85

86
87
88
89
90







-
+



-
+



-
+



-
+



-
+



-
+




  UPDATE t1 SET content = 'update' WHERE rowid = 15;
}

do_test fts2f-1.1 {
  execsql {SELECT COUNT(*) FROM t1}
} {16}

do_test fts2e-2.0 {
do_test fts2f-2.0 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'update'}
} {1 8 15}

do_test fts2e-2.1 {
do_test fts2f-2.1 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'one'}
} {1 3 5 9 11 17 21}

do_test fts2e-2.2 {
do_test fts2f-2.2 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'two'}
} {2 3 6 8 11 14 18 22}

do_test fts2e-2.3 {
do_test fts2f-2.3 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'three'}
} {1 5 6 12 14 20 21 22}

do_test fts2e-2.4 {
do_test fts2f-2.4 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'four'}
} {9 11 12 14}

do_test fts2e-2.5 {
do_test fts2f-2.5 {
  execsql {SELECT rowid FROM t1 WHERE content MATCH 'five'}
} {8 17 18 20 21 22}

finish_test