1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Test coverage improvements in printf.c. (CVS 5360)

FossilOrigin-Name: 6f2629c78327bb6cbb15d1f9900a1ef58f2d37dd
This commit is contained in:
drh
2008-07-08 02:24:02 +00:00
parent c8d75674d6
commit f43639a0bc
3 changed files with 18 additions and 8 deletions

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.28 2008/02/01 01:19:54 drh Exp $
# $Id: printf.test,v 1.29 2008/07/08 02:24:03 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -3612,6 +3612,16 @@ do_test printf-14.2 {
do_test printf-14.3 {
sqlite3_mprintf_str {abc-%T-123} 0 0 {not used}
} {abc-}
do_test printf-14.4 {
sqlite3_mprintf_str {abc-%#} 0 0 {not used}
} {abc-}
for {set i 2} {$i<200} {incr i} {
set res [string repeat { } [expr {$i-1}]]x
do_test printf-14.10.$i "
sqlite3_mprintf_str {%*.*s} $i 500 x
" $res
}
do_test printf-15.1 {
sqlite3_snprintf_int 5 {12345} 0