1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-23 11:22:09 +03:00

Added printf-4.(2-4) test cases to test new %Q format specifier. (CVS 622)

FossilOrigin-Name: 7d5fc35b5d38230230344b4f70763f75940ab908
This commit is contained in:
chw
2002-06-16 04:56:36 +00:00
parent 0cfcf3fbd1
commit b22f1b58ac
3 changed files with 17 additions and 8 deletions

View File

@ -1,5 +1,5 @@
C Added\s%Q\sformat\sspecifier:\slike\s%q\sbut\sautomatic\senclosing\sin\nsingle\squotes,\sNULL\spointers\sreplaced\sby\sNULL\sw/o\ssingle-quotes.\s(CVS\s621)
D 2002-06-16T04:55:48
C Added\sprintf-4.(2-4)\stest\scases\sto\stest\snew\s%Q\sformat\sspecifier.\s(CVS\s622)
D 2002-06-16T04:56:37
F Makefile.in 6291a33b87d2a395aafd7646ee1ed562c6f2c28c
F Makefile.template 4e11752e0b5c7a043ca50af4296ec562857ba495
F README a4c0ba11354ef6ba0776b400d057c59da47a4cc0
@ -83,7 +83,7 @@ F test/notnull.test b1f3e42fc475b0b5827b27b2e9b562081995ff30
F test/null.test 5c2b57307e4b6178aae825eb65ddbee01e76b0fd
F test/pager.test b0c0d00cd5dce0ce21f16926956b195c0ab5044c
F test/pragma.test 0b9675ef1f5ba5b43abfa337744445fc5b01a34a
F test/printf.test 3cb415073754cb8ff076f26173143c3cd293a9da
F test/printf.test a29b8afa24edb4411adfe473b12ac32c84098fce
F test/quick.test 6f023c7a73fc413e6d65b7a1879c79764038dc05
F test/quote.test 08f23385c685d3dc7914ec760d492cacea7f6e3d
F test/rowid.test 4c55943300cddf73dd0f88d40a268cab14c83274
@ -137,7 +137,7 @@ F www/speed.tcl da8afcc1d3ccc5696cfb388a68982bc3d9f7f00f
F www/sqlite.tcl 8b5884354cb615049aed83039f8dfe1552a44279
F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218
P 8bc711571d752a81957007be22ed8a3c6877f676
R b88f44ec684ed6abc5b7b24fd62abad4
P b9c7ecc2f9d8d7d57c51dc4ba0aaa520e89eb31f
R e772258ee0dc04fdc02553a51e656b4b
U chw
Z fa4085981e2ff6e4da01d48425d29821
Z 413c80ebe0a7609981d76612786a2b60

View File

@ -1 +1 @@
b9c7ecc2f9d8d7d57c51dc4ba0aaa520e89eb31f
7d5fc35b5d38230230344b4f70763f75940ab908

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing the sqlite_*_printf() interface.
#
# $Id: printf.test,v 1.4 2001/09/20 01:44:43 drh Exp $
# $Id: printf.test,v 1.5 2002/06/16 04:56:37 chw Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -90,6 +90,15 @@ do_test printf-3.6 {
do_test printf-4.1 {
sqlite_mprintf_str {%d %d A quoted string: '%q'} 1 2 {Hi Y'all}
} {1 2 A quoted string: 'Hi Y''all'}
do_test printf-4.2 {
sqlite_mprintf_str {%d %d A NULL pointer in %%q: '%q'} 1 2
} {1 2 A NULL pointer in %q: '(NULL)'}
do_test printf-4.3 {
sqlite_mprintf_str {%d %d A quoted string: %Q} 1 2 {Hi Y'all}
} {1 2 A quoted string: 'Hi Y''all'}
do_test printf-4.4 {
sqlite_mprintf_str {%d %d A NULL pointer in %%Q: %Q} 1 2
} {1 2 A NULL pointer in %Q: NULL}
do_test printf-5.1 {
set x [sqlite_mprintf_str {%d %d %100000s} 0 0 {Hello}]