mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Add a couple of extra tests for the fts3 expression parser to improve mcdc coverage. (CVS 6093)
FossilOrigin-Name: 13146b34935d339d7b8379083e024647af07e2c1
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this script is testing the FTS3 module.
|
||||
#
|
||||
# $Id: fts3expr.test,v 1.3 2009/01/01 07:08:55 danielk1977 Exp $
|
||||
# $Id: fts3expr.test,v 1.4 2009/01/01 07:42:49 danielk1977 Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -144,6 +144,28 @@ do_test fts3expr-3.12 {
|
||||
test_fts3expr2 "(two NEAR three) OR (four NEAR five)"
|
||||
} {OR {NEAR/10 two three} {NEAR/10 four five}}
|
||||
|
||||
do_test fts3expr-3.13 {
|
||||
test_fts3expr2 "(two NEAR/1a three)"
|
||||
} {AND {AND {AND two near} 1a} three}
|
||||
|
||||
do_test fts3expr-3.14 {
|
||||
test_fts3expr2 "(two NEAR// three)"
|
||||
} {AND {AND two near} three}
|
||||
do_test fts3expr-3.15 {
|
||||
test_fts3expr2 "(two NEAR/: three)"
|
||||
} {AND {AND two near} three}
|
||||
|
||||
do_test fts3expr-3.16 {
|
||||
test_fts3expr2 "(two NEAR three)OR(four NEAR five)"
|
||||
} {OR {NEAR/10 two three} {NEAR/10 four five}}
|
||||
do_test fts3expr-3.17 {
|
||||
test_fts3expr2 "(two NEAR three)OR\"four five\""
|
||||
} {OR {NEAR/10 two three} {four five}}
|
||||
do_test fts3expr-3.18 {
|
||||
test_fts3expr2 "one \u0080wo"
|
||||
} "AND one \u0080wo"
|
||||
|
||||
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
# The following tests, fts3expr-4.*, test the parsers response to syntax
|
||||
|
Reference in New Issue
Block a user