mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Add test cases for escape characters in the GLOB operator. (CVS 2101)
FossilOrigin-Name: bb2d9ff881e4c6fe0cf60a13609d39426346fa9d
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this file is testing expressions.
|
||||
#
|
||||
# $Id: expr.test,v 1.38 2004/11/10 12:34:20 danielk1977 Exp $
|
||||
# $Id: expr.test,v 1.39 2004/11/15 01:40:48 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -297,6 +297,9 @@ test_expr expr-6.22b {t1='abcdefg', t2='a*[^def]g'} {t1 GLOB t2} 0
|
||||
test_expr expr-6.23 {t1='abcdefg', t2='a*?g'} {t1 GLOB t2} 1
|
||||
test_expr expr-6.24 {t1='ac', t2='a*c'} {t1 GLOB t2} 1
|
||||
test_expr expr-6.25 {t1='ac', t2='a*?c'} {t1 GLOB t2} 0
|
||||
test_expr expr-6.26 {t1='a*c', t2='a[*]c'} {t1 GLOB t2} 1
|
||||
test_expr expr-6.27 {t1='a?c', t2='a[?]c'} {t1 GLOB t2} 1
|
||||
test_expr expr-6.28 {t1='a[c', t2='a[[]c'} {t1 GLOB t2} 1
|
||||
|
||||
|
||||
# These tests only work on versions of TCL that support Unicode
|
||||
@ -502,4 +505,3 @@ ifcapable datetime {
|
||||
set sqlite_current_time 0
|
||||
|
||||
finish_test
|
||||
|
||||
|
Reference in New Issue
Block a user