os/persistentdata/persistentstorage/sqlite3api/TEST/TclScript/printf.test
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
# 2001 September 15
sl@0
     2
#
sl@0
     3
# The author disclaims copyright to this source code.  In place of
sl@0
     4
# a legal notice, here is a blessing:
sl@0
     5
#
sl@0
     6
#    May you do good and not evil.
sl@0
     7
#    May you find forgiveness for yourself and forgive others.
sl@0
     8
#    May you share freely, never taking more than you give.
sl@0
     9
#
sl@0
    10
#***********************************************************************
sl@0
    11
# This file implements regression tests for SQLite library.  The
sl@0
    12
# focus of this file is testing the sqlite_*_printf() interface.
sl@0
    13
#
sl@0
    14
# $Id: printf.test,v 1.30 2008/07/09 16:51:52 drh Exp $
sl@0
    15
sl@0
    16
set testdir [file dirname $argv0]
sl@0
    17
source $testdir/tester.tcl
sl@0
    18
sl@0
    19
sl@0
    20
do_test printf-1.1.1 {
sl@0
    21
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
    22
       1 1 1
sl@0
    23
} {abc: 1 1 1 :xyz}
sl@0
    24
do_test printf-1.1.2 {
sl@0
    25
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
    26
       1 1 1
sl@0
    27
} {abc: (     1) (     1) (     1) :xyz}
sl@0
    28
do_test printf-1.1.3 {
sl@0
    29
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
    30
       1 1 1
sl@0
    31
} {abc: (1     ) (1     ) (1     ) :xyz}
sl@0
    32
do_test printf-1.1.4 {
sl@0
    33
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
    34
       1 1 1
sl@0
    35
} {abc: (    +1) (     1) (     1) :xyz}
sl@0
    36
do_test printf-1.1.5 {
sl@0
    37
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
    38
       1 1 1
sl@0
    39
} {abc: (000001) (000001) (000001) :xyz}
sl@0
    40
do_test printf-1.1.6 {
sl@0
    41
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
    42
       1 1 1
sl@0
    43
} {abc: (     1) (     1) (     1) :xyz}
sl@0
    44
do_test printf-1.1.7 {
sl@0
    45
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
    46
       1 1 1
sl@0
    47
} {abc: (     1) (   0x1) (    01) :xyz}
sl@0
    48
do_test printf-1.2.1 {
sl@0
    49
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
    50
       2 2 2
sl@0
    51
} {abc: 2 2 2 :xyz}
sl@0
    52
do_test printf-1.2.2 {
sl@0
    53
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
    54
       2 2 2
sl@0
    55
} {abc: (     2) (     2) (     2) :xyz}
sl@0
    56
do_test printf-1.2.3 {
sl@0
    57
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
    58
       2 2 2
sl@0
    59
} {abc: (2     ) (2     ) (2     ) :xyz}
sl@0
    60
do_test printf-1.2.4 {
sl@0
    61
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
    62
       2 2 2
sl@0
    63
} {abc: (    +2) (     2) (     2) :xyz}
sl@0
    64
do_test printf-1.2.5 {
sl@0
    65
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
    66
       2 2 2
sl@0
    67
} {abc: (000002) (000002) (000002) :xyz}
sl@0
    68
do_test printf-1.2.6 {
sl@0
    69
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
    70
       2 2 2
sl@0
    71
} {abc: (     2) (     2) (     2) :xyz}
sl@0
    72
do_test printf-1.2.7 {
sl@0
    73
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
    74
       2 2 2
sl@0
    75
} {abc: (     2) (   0x2) (    02) :xyz}
sl@0
    76
do_test printf-1.3.1 {
sl@0
    77
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
    78
       5 5 5
sl@0
    79
} {abc: 5 5 5 :xyz}
sl@0
    80
do_test printf-1.3.2 {
sl@0
    81
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
    82
       5 5 5
sl@0
    83
} {abc: (     5) (     5) (     5) :xyz}
sl@0
    84
do_test printf-1.3.3 {
sl@0
    85
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
    86
       5 5 5
sl@0
    87
} {abc: (5     ) (5     ) (5     ) :xyz}
sl@0
    88
do_test printf-1.3.4 {
sl@0
    89
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
    90
       5 5 5
sl@0
    91
} {abc: (    +5) (     5) (     5) :xyz}
sl@0
    92
do_test printf-1.3.5 {
sl@0
    93
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
    94
       5 5 5
sl@0
    95
} {abc: (000005) (000005) (000005) :xyz}
sl@0
    96
do_test printf-1.3.6 {
sl@0
    97
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
    98
       5 5 5
sl@0
    99
} {abc: (     5) (     5) (     5) :xyz}
sl@0
   100
do_test printf-1.3.7 {
sl@0
   101
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   102
       5 5 5
sl@0
   103
} {abc: (     5) (   0x5) (    05) :xyz}
sl@0
   104
do_test printf-1.4.1 {
sl@0
   105
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   106
       10 10 10
sl@0
   107
} {abc: 10 a 12 :xyz}
sl@0
   108
do_test printf-1.4.2 {
sl@0
   109
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   110
       10 10 10
sl@0
   111
} {abc: (    10) (     a) (    12) :xyz}
sl@0
   112
do_test printf-1.4.3 {
sl@0
   113
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   114
       10 10 10
sl@0
   115
} {abc: (10    ) (a     ) (12    ) :xyz}
sl@0
   116
do_test printf-1.4.4 {
sl@0
   117
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   118
       10 10 10
sl@0
   119
} {abc: (   +10) (     a) (    12) :xyz}
sl@0
   120
do_test printf-1.4.5 {
sl@0
   121
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   122
       10 10 10
sl@0
   123
} {abc: (000010) (00000a) (000012) :xyz}
sl@0
   124
do_test printf-1.4.6 {
sl@0
   125
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   126
       10 10 10
sl@0
   127
} {abc: (    10) (     a) (    12) :xyz}
sl@0
   128
do_test printf-1.4.7 {
sl@0
   129
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   130
       10 10 10
sl@0
   131
} {abc: (    10) (   0xa) (   012) :xyz}
sl@0
   132
do_test printf-1.5.1 {
sl@0
   133
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   134
       99 99 99
sl@0
   135
} {abc: 99 63 143 :xyz}
sl@0
   136
do_test printf-1.5.2 {
sl@0
   137
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   138
       99 99 99
sl@0
   139
} {abc: (    99) (    63) (   143) :xyz}
sl@0
   140
do_test printf-1.5.3 {
sl@0
   141
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   142
       99 99 99
sl@0
   143
} {abc: (99    ) (63    ) (143   ) :xyz}
sl@0
   144
do_test printf-1.5.4 {
sl@0
   145
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   146
       99 99 99
sl@0
   147
} {abc: (   +99) (    63) (   143) :xyz}
sl@0
   148
do_test printf-1.5.5 {
sl@0
   149
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   150
       99 99 99
sl@0
   151
} {abc: (000099) (000063) (000143) :xyz}
sl@0
   152
do_test printf-1.5.6 {
sl@0
   153
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   154
       99 99 99
sl@0
   155
} {abc: (    99) (    63) (   143) :xyz}
sl@0
   156
do_test printf-1.5.7 {
sl@0
   157
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   158
       99 99 99
sl@0
   159
} {abc: (    99) (  0x63) (  0143) :xyz}
sl@0
   160
do_test printf-1.6.1 {
sl@0
   161
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   162
       100 100 100
sl@0
   163
} {abc: 100 64 144 :xyz}
sl@0
   164
do_test printf-1.6.2 {
sl@0
   165
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   166
       100 100 100
sl@0
   167
} {abc: (   100) (    64) (   144) :xyz}
sl@0
   168
do_test printf-1.6.3 {
sl@0
   169
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   170
       100 100 100
sl@0
   171
} {abc: (100   ) (64    ) (144   ) :xyz}
sl@0
   172
do_test printf-1.6.4 {
sl@0
   173
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   174
       100 100 100
sl@0
   175
} {abc: (  +100) (    64) (   144) :xyz}
sl@0
   176
do_test printf-1.6.5 {
sl@0
   177
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   178
       100 100 100
sl@0
   179
} {abc: (000100) (000064) (000144) :xyz}
sl@0
   180
do_test printf-1.6.6 {
sl@0
   181
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   182
       100 100 100
sl@0
   183
} {abc: (   100) (    64) (   144) :xyz}
sl@0
   184
do_test printf-1.6.7 {
sl@0
   185
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   186
       100 100 100
sl@0
   187
} {abc: (   100) (  0x64) (  0144) :xyz}
sl@0
   188
do_test printf-1.7.1 {
sl@0
   189
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   190
       1000000 1000000 1000000
sl@0
   191
} {abc: 1000000 f4240 3641100 :xyz}
sl@0
   192
do_test printf-1.7.2 {
sl@0
   193
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   194
       1000000 1000000 1000000
sl@0
   195
} {abc: (1000000) ( f4240) (3641100) :xyz}
sl@0
   196
do_test printf-1.7.3 {
sl@0
   197
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   198
       1000000 1000000 1000000
sl@0
   199
} {abc: (1000000) (f4240 ) (3641100) :xyz}
sl@0
   200
do_test printf-1.7.4 {
sl@0
   201
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   202
       1000000 1000000 1000000
sl@0
   203
} {abc: (+1000000) ( f4240) (3641100) :xyz}
sl@0
   204
do_test printf-1.7.5 {
sl@0
   205
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   206
       1000000 1000000 1000000
sl@0
   207
} {abc: (1000000) (0f4240) (3641100) :xyz}
sl@0
   208
do_test printf-1.7.6 {
sl@0
   209
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   210
       1000000 1000000 1000000
sl@0
   211
} {abc: ( 1000000) ( f4240) (3641100) :xyz}
sl@0
   212
do_test printf-1.7.7 {
sl@0
   213
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   214
       1000000 1000000 1000000
sl@0
   215
} {abc: (1000000) (0xf4240) (03641100) :xyz}
sl@0
   216
do_test printf-1.8.1 {
sl@0
   217
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   218
       999999999 999999999 999999999
sl@0
   219
} {abc: 999999999 3b9ac9ff 7346544777 :xyz}
sl@0
   220
do_test printf-1.8.2 {
sl@0
   221
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   222
       999999999 999999999 999999999
sl@0
   223
} {abc: (999999999) (3b9ac9ff) (7346544777) :xyz}
sl@0
   224
do_test printf-1.8.3 {
sl@0
   225
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   226
       999999999 999999999 999999999
sl@0
   227
} {abc: (999999999) (3b9ac9ff) (7346544777) :xyz}
sl@0
   228
do_test printf-1.8.4 {
sl@0
   229
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   230
       999999999 999999999 999999999
sl@0
   231
} {abc: (+999999999) (3b9ac9ff) (7346544777) :xyz}
sl@0
   232
do_test printf-1.8.5 {
sl@0
   233
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   234
       999999999 999999999 999999999
sl@0
   235
} {abc: (999999999) (3b9ac9ff) (7346544777) :xyz}
sl@0
   236
do_test printf-1.8.6 {
sl@0
   237
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   238
       999999999 999999999 999999999
sl@0
   239
} {abc: ( 999999999) (3b9ac9ff) (7346544777) :xyz}
sl@0
   240
do_test printf-1.8.7 {
sl@0
   241
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   242
       999999999 999999999 999999999
sl@0
   243
} {abc: (999999999) (0x3b9ac9ff) (07346544777) :xyz}
sl@0
   244
do_test printf-1.9.1 {
sl@0
   245
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   246
       0 0 0
sl@0
   247
} {abc: 0 0 0 :xyz}
sl@0
   248
do_test printf-1.9.2 {
sl@0
   249
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   250
       0 0 0
sl@0
   251
} {abc: (     0) (     0) (     0) :xyz}
sl@0
   252
do_test printf-1.9.3 {
sl@0
   253
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   254
       0 0 0
sl@0
   255
} {abc: (0     ) (0     ) (0     ) :xyz}
sl@0
   256
do_test printf-1.9.4 {
sl@0
   257
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   258
       0 0 0
sl@0
   259
} {abc: (    +0) (     0) (     0) :xyz}
sl@0
   260
do_test printf-1.9.5 {
sl@0
   261
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   262
       0 0 0
sl@0
   263
} {abc: (000000) (000000) (000000) :xyz}
sl@0
   264
do_test printf-1.9.6 {
sl@0
   265
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   266
       0 0 0
sl@0
   267
} {abc: (     0) (     0) (     0) :xyz}
sl@0
   268
do_test printf-1.9.7 {
sl@0
   269
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   270
       0 0 0
sl@0
   271
} {abc: (     0) (     0) (     0) :xyz}
sl@0
   272
# 0xffffffff == -1
sl@0
   273
do_test printf-1.10.1 {
sl@0
   274
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   275
       0xffffffff 0xffffffff 0xffffffff
sl@0
   276
} {abc: -1 ffffffff 37777777777 :xyz}
sl@0
   277
do_test printf-1.10.2 {
sl@0
   278
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   279
       0xffffffff 0xffffffff 0xffffffff
sl@0
   280
} {abc: (    -1) (ffffffff) (37777777777) :xyz}
sl@0
   281
do_test printf-1.10.3 {
sl@0
   282
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   283
       0xffffffff 0xffffffff 0xffffffff
sl@0
   284
} {abc: (-1    ) (ffffffff) (37777777777) :xyz}
sl@0
   285
do_test printf-1.10.4 {
sl@0
   286
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   287
       0xffffffff 0xffffffff 0xffffffff
sl@0
   288
} {abc: (    -1) (ffffffff) (37777777777) :xyz}
sl@0
   289
do_test printf-1.10.5 {
sl@0
   290
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   291
       0xffffffff 0xffffffff 0xffffffff
sl@0
   292
} {abc: (-00001) (ffffffff) (37777777777) :xyz}
sl@0
   293
do_test printf-1.10.6 {
sl@0
   294
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   295
       0xffffffff 0xffffffff 0xffffffff
sl@0
   296
} {abc: (    -1) (ffffffff) (37777777777) :xyz}
sl@0
   297
do_test printf-1.10.7 {
sl@0
   298
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   299
       0xffffffff 0xffffffff 0xffffffff
sl@0
   300
} {abc: (    -1) (0xffffffff) (037777777777) :xyz}
sl@0
   301
# 0xfffffffe == -2
sl@0
   302
do_test printf-1.11.1 {
sl@0
   303
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   304
       0xfffffffe 0xfffffffe 0xfffffffe
sl@0
   305
} {abc: -2 fffffffe 37777777776 :xyz}
sl@0
   306
do_test printf-1.11.2 {
sl@0
   307
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   308
       0xfffffffe 0xfffffffe 0xfffffffe
sl@0
   309
} {abc: (    -2) (fffffffe) (37777777776) :xyz}
sl@0
   310
do_test printf-1.11.3 {
sl@0
   311
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   312
       0xfffffffe 0xfffffffe 0xfffffffe
sl@0
   313
} {abc: (-2    ) (fffffffe) (37777777776) :xyz}
sl@0
   314
do_test printf-1.11.4 {
sl@0
   315
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   316
       0xfffffffe 0xfffffffe 0xfffffffe
sl@0
   317
} {abc: (    -2) (fffffffe) (37777777776) :xyz}
sl@0
   318
do_test printf-1.11.5 {
sl@0
   319
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   320
       0xfffffffe 0xfffffffe 0xfffffffe
sl@0
   321
} {abc: (-00002) (fffffffe) (37777777776) :xyz}
sl@0
   322
do_test printf-1.11.6 {
sl@0
   323
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   324
       0xfffffffe 0xfffffffe 0xfffffffe
sl@0
   325
} {abc: (    -2) (fffffffe) (37777777776) :xyz}
sl@0
   326
do_test printf-1.11.7 {
sl@0
   327
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   328
       0xfffffffe 0xfffffffe 0xfffffffe
sl@0
   329
} {abc: (    -2) (0xfffffffe) (037777777776) :xyz}
sl@0
   330
# 0xfffffffb == -5
sl@0
   331
do_test printf-1.12.1 {
sl@0
   332
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   333
       0xfffffffb 0xfffffffb 0xfffffffb
sl@0
   334
} {abc: -5 fffffffb 37777777773 :xyz}
sl@0
   335
do_test printf-1.12.2 {
sl@0
   336
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   337
       0xfffffffb 0xfffffffb 0xfffffffb
sl@0
   338
} {abc: (    -5) (fffffffb) (37777777773) :xyz}
sl@0
   339
do_test printf-1.12.3 {
sl@0
   340
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   341
       0xfffffffb 0xfffffffb 0xfffffffb
sl@0
   342
} {abc: (-5    ) (fffffffb) (37777777773) :xyz}
sl@0
   343
do_test printf-1.12.4 {
sl@0
   344
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   345
       0xfffffffb 0xfffffffb 0xfffffffb
sl@0
   346
} {abc: (    -5) (fffffffb) (37777777773) :xyz}
sl@0
   347
do_test printf-1.12.5 {
sl@0
   348
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   349
       0xfffffffb 0xfffffffb 0xfffffffb
sl@0
   350
} {abc: (-00005) (fffffffb) (37777777773) :xyz}
sl@0
   351
do_test printf-1.12.6 {
sl@0
   352
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   353
       0xfffffffb 0xfffffffb 0xfffffffb
sl@0
   354
} {abc: (    -5) (fffffffb) (37777777773) :xyz}
sl@0
   355
do_test printf-1.12.7 {
sl@0
   356
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   357
       0xfffffffb 0xfffffffb 0xfffffffb
sl@0
   358
} {abc: (    -5) (0xfffffffb) (037777777773) :xyz}
sl@0
   359
# 0xfffffff6 == -10
sl@0
   360
do_test printf-1.13.1 {
sl@0
   361
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   362
       0xfffffff6 0xfffffff6 0xfffffff6
sl@0
   363
} {abc: -10 fffffff6 37777777766 :xyz}
sl@0
   364
do_test printf-1.13.2 {
sl@0
   365
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   366
       0xfffffff6 0xfffffff6 0xfffffff6
sl@0
   367
} {abc: (   -10) (fffffff6) (37777777766) :xyz}
sl@0
   368
do_test printf-1.13.3 {
sl@0
   369
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   370
       0xfffffff6 0xfffffff6 0xfffffff6
sl@0
   371
} {abc: (-10   ) (fffffff6) (37777777766) :xyz}
sl@0
   372
do_test printf-1.13.4 {
sl@0
   373
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   374
       0xfffffff6 0xfffffff6 0xfffffff6
sl@0
   375
} {abc: (   -10) (fffffff6) (37777777766) :xyz}
sl@0
   376
do_test printf-1.13.5 {
sl@0
   377
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   378
       0xfffffff6 0xfffffff6 0xfffffff6
sl@0
   379
} {abc: (-00010) (fffffff6) (37777777766) :xyz}
sl@0
   380
do_test printf-1.13.6 {
sl@0
   381
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   382
       0xfffffff6 0xfffffff6 0xfffffff6
sl@0
   383
} {abc: (   -10) (fffffff6) (37777777766) :xyz}
sl@0
   384
do_test printf-1.13.7 {
sl@0
   385
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   386
       0xfffffff6 0xfffffff6 0xfffffff6
sl@0
   387
} {abc: (   -10) (0xfffffff6) (037777777766) :xyz}
sl@0
   388
# 0xffffff9d == -99
sl@0
   389
do_test printf-1.14.1 {
sl@0
   390
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   391
       0xffffff9d 0xffffff9d 0xffffff9d
sl@0
   392
} {abc: -99 ffffff9d 37777777635 :xyz}
sl@0
   393
do_test printf-1.14.2 {
sl@0
   394
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   395
       0xffffff9d 0xffffff9d 0xffffff9d
sl@0
   396
} {abc: (   -99) (ffffff9d) (37777777635) :xyz}
sl@0
   397
do_test printf-1.14.3 {
sl@0
   398
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   399
       0xffffff9d 0xffffff9d 0xffffff9d
sl@0
   400
} {abc: (-99   ) (ffffff9d) (37777777635) :xyz}
sl@0
   401
do_test printf-1.14.4 {
sl@0
   402
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   403
       0xffffff9d 0xffffff9d 0xffffff9d
sl@0
   404
} {abc: (   -99) (ffffff9d) (37777777635) :xyz}
sl@0
   405
do_test printf-1.14.5 {
sl@0
   406
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   407
       0xffffff9d 0xffffff9d 0xffffff9d
sl@0
   408
} {abc: (-00099) (ffffff9d) (37777777635) :xyz}
sl@0
   409
do_test printf-1.14.6 {
sl@0
   410
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   411
       0xffffff9d 0xffffff9d 0xffffff9d
sl@0
   412
} {abc: (   -99) (ffffff9d) (37777777635) :xyz}
sl@0
   413
do_test printf-1.14.7 {
sl@0
   414
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   415
       0xffffff9d 0xffffff9d 0xffffff9d
sl@0
   416
} {abc: (   -99) (0xffffff9d) (037777777635) :xyz}
sl@0
   417
# 0xffffff9c == -100
sl@0
   418
do_test printf-1.15.1 {
sl@0
   419
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   420
       0xffffff9c 0xffffff9c 0xffffff9c
sl@0
   421
} {abc: -100 ffffff9c 37777777634 :xyz}
sl@0
   422
do_test printf-1.15.2 {
sl@0
   423
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   424
       0xffffff9c 0xffffff9c 0xffffff9c
sl@0
   425
} {abc: (  -100) (ffffff9c) (37777777634) :xyz}
sl@0
   426
do_test printf-1.15.3 {
sl@0
   427
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   428
       0xffffff9c 0xffffff9c 0xffffff9c
sl@0
   429
} {abc: (-100  ) (ffffff9c) (37777777634) :xyz}
sl@0
   430
do_test printf-1.15.4 {
sl@0
   431
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   432
       0xffffff9c 0xffffff9c 0xffffff9c
sl@0
   433
} {abc: (  -100) (ffffff9c) (37777777634) :xyz}
sl@0
   434
do_test printf-1.15.5 {
sl@0
   435
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   436
       0xffffff9c 0xffffff9c 0xffffff9c
sl@0
   437
} {abc: (-00100) (ffffff9c) (37777777634) :xyz}
sl@0
   438
do_test printf-1.15.6 {
sl@0
   439
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   440
       0xffffff9c 0xffffff9c 0xffffff9c
sl@0
   441
} {abc: (  -100) (ffffff9c) (37777777634) :xyz}
sl@0
   442
do_test printf-1.15.7 {
sl@0
   443
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   444
       0xffffff9c 0xffffff9c 0xffffff9c
sl@0
   445
} {abc: (  -100) (0xffffff9c) (037777777634) :xyz}
sl@0
   446
# 0xff676981 == -9999999
sl@0
   447
do_test printf-1.16.1 {
sl@0
   448
  sqlite3_mprintf_int {abc: %d %x %o :xyz}\
sl@0
   449
       0xff676981 0xff676981 0xff676981
sl@0
   450
} {abc: -9999999 ff676981 37731664601 :xyz}
sl@0
   451
do_test printf-1.16.2 {
sl@0
   452
  sqlite3_mprintf_int {abc: (%6d) (%6x) (%6o) :xyz}\
sl@0
   453
       0xff676981 0xff676981 0xff676981
sl@0
   454
} {abc: (-9999999) (ff676981) (37731664601) :xyz}
sl@0
   455
do_test printf-1.16.3 {
sl@0
   456
  sqlite3_mprintf_int {abc: (%-6d) (%-6x) (%-6o) :xyz}\
sl@0
   457
       0xff676981 0xff676981 0xff676981
sl@0
   458
} {abc: (-9999999) (ff676981) (37731664601) :xyz}
sl@0
   459
do_test printf-1.16.4 {
sl@0
   460
  sqlite3_mprintf_int {abc: (%+6d) (%+6x) (%+6o) :xyz}\
sl@0
   461
       0xff676981 0xff676981 0xff676981
sl@0
   462
} {abc: (-9999999) (ff676981) (37731664601) :xyz}
sl@0
   463
do_test printf-1.16.5 {
sl@0
   464
  sqlite3_mprintf_int {abc: (%06d) (%06x) (%06o) :xyz}\
sl@0
   465
       0xff676981 0xff676981 0xff676981
sl@0
   466
} {abc: (-9999999) (ff676981) (37731664601) :xyz}
sl@0
   467
do_test printf-1.16.6 {
sl@0
   468
  sqlite3_mprintf_int {abc: (% 6d) (% 6x) (% 6o) :xyz}\
sl@0
   469
       0xff676981 0xff676981 0xff676981
sl@0
   470
} {abc: (-9999999) (ff676981) (37731664601) :xyz}
sl@0
   471
do_test printf-1.16.7 {
sl@0
   472
  sqlite3_mprintf_int {abc: (%#6d) (%#6x) (%#6o) :xyz}\
sl@0
   473
       0xff676981 0xff676981 0xff676981
sl@0
   474
} {abc: (-9999999) (0xff676981) (037731664601) :xyz}
sl@0
   475
do_test printf-2.1.1.1 {
sl@0
   476
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 0.001
sl@0
   477
} {abc: (0.0) :xyz}
sl@0
   478
do_test printf-2.1.1.2 {
sl@0
   479
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 0.001
sl@0
   480
} {abc: (1.0e-03) :xyz}
sl@0
   481
do_test printf-2.1.1.3 {
sl@0
   482
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 0.001
sl@0
   483
} {abc: (0.001) :xyz}
sl@0
   484
do_test printf-2.1.1.4 {
sl@0
   485
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 0.001
sl@0
   486
} {abc: 1 1 (0.001) :xyz}
sl@0
   487
do_test printf-2.1.1.5 {
sl@0
   488
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 0.001
sl@0
   489
} {abc: 1 1 (0.00100000) :xyz}
sl@0
   490
do_test printf-2.1.1.6 {
sl@0
   491
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 0.001
sl@0
   492
} {abc: 1 1 (000000.001) :xyz}
sl@0
   493
do_test printf-2.1.1.7 {
sl@0
   494
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 0.001
sl@0
   495
} {abc: 1 1 (0.0) :xyz}
sl@0
   496
do_test printf-2.1.1.8 {
sl@0
   497
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 0.001
sl@0
   498
} {abc: 1 1 (1.0e-03) :xyz}
sl@0
   499
do_test printf-2.1.1.9 {
sl@0
   500
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 0.001
sl@0
   501
} {abc: 1 1 (0.001) :xyz}
sl@0
   502
do_test printf-2.1.2.1 {
sl@0
   503
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 1.0e-20
sl@0
   504
} {abc: (0.0) :xyz}
sl@0
   505
do_test printf-2.1.2.2 {
sl@0
   506
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 1.0e-20
sl@0
   507
} {abc: (1.0e-20) :xyz}
sl@0
   508
do_test printf-2.1.2.3 {
sl@0
   509
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 1.0e-20
sl@0
   510
} {abc: (1e-20) :xyz}
sl@0
   511
do_test printf-2.1.2.4 {
sl@0
   512
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 1.0e-20
sl@0
   513
} {abc: 1 1 (1e-20) :xyz}
sl@0
   514
do_test printf-2.1.2.5 {
sl@0
   515
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 1.0e-20
sl@0
   516
} {abc: 1 1 (1.00000e-20) :xyz}
sl@0
   517
do_test printf-2.1.2.6 {
sl@0
   518
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 1.0e-20
sl@0
   519
} {abc: 1 1 (000001e-20) :xyz}
sl@0
   520
do_test printf-2.1.2.7 {
sl@0
   521
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 1.0e-20
sl@0
   522
} {abc: 1 1 (0.0) :xyz}
sl@0
   523
do_test printf-2.1.2.8 {
sl@0
   524
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 1.0e-20
sl@0
   525
} {abc: 1 1 (1.0e-20) :xyz}
sl@0
   526
do_test printf-2.1.2.9 {
sl@0
   527
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 1.0e-20
sl@0
   528
} {abc: 1 1 (1e-20) :xyz}
sl@0
   529
do_test printf-2.1.3.1 {
sl@0
   530
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 1.0
sl@0
   531
} {abc: (1.0) :xyz}
sl@0
   532
do_test printf-2.1.3.2 {
sl@0
   533
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 1.0
sl@0
   534
} {abc: (1.0e+00) :xyz}
sl@0
   535
do_test printf-2.1.3.3 {
sl@0
   536
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 1.0
sl@0
   537
} {abc: (1) :xyz}
sl@0
   538
do_test printf-2.1.3.4 {
sl@0
   539
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 1.0
sl@0
   540
} {abc: 1 1 (1) :xyz}
sl@0
   541
do_test printf-2.1.3.5 {
sl@0
   542
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 1.0
sl@0
   543
} {abc: 1 1 (1.00000) :xyz}
sl@0
   544
do_test printf-2.1.3.6 {
sl@0
   545
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 1.0
sl@0
   546
} {abc: 1 1 (0000000001) :xyz}
sl@0
   547
do_test printf-2.1.3.7 {
sl@0
   548
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 1.0
sl@0
   549
} {abc: 1 1 (1.0) :xyz}
sl@0
   550
do_test printf-2.1.3.8 {
sl@0
   551
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 1.0
sl@0
   552
} {abc: 1 1 (1.0e+00) :xyz}
sl@0
   553
do_test printf-2.1.3.9 {
sl@0
   554
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 1.0
sl@0
   555
} {abc: 1 1 (1) :xyz}
sl@0
   556
do_test printf-2.1.4.1 {
sl@0
   557
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 0.0
sl@0
   558
} {abc: (0.0) :xyz}
sl@0
   559
do_test printf-2.1.4.2 {
sl@0
   560
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 0.0
sl@0
   561
} {abc: (0.0e+00) :xyz}
sl@0
   562
do_test printf-2.1.4.3 {
sl@0
   563
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 0.0
sl@0
   564
} {abc: (0) :xyz}
sl@0
   565
do_test printf-2.1.4.4 {
sl@0
   566
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 0.0
sl@0
   567
} {abc: 1 1 (0) :xyz}
sl@0
   568
do_test printf-2.1.4.5 {
sl@0
   569
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 0.0
sl@0
   570
} {abc: 1 1 (0.00000) :xyz}
sl@0
   571
do_test printf-2.1.4.6 {
sl@0
   572
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 0.0
sl@0
   573
} {abc: 1 1 (0000000000) :xyz}
sl@0
   574
do_test printf-2.1.4.7 {
sl@0
   575
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 0.0
sl@0
   576
} {abc: 1 1 (0.0) :xyz}
sl@0
   577
do_test printf-2.1.4.8 {
sl@0
   578
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 0.0
sl@0
   579
} {abc: 1 1 (0.0e+00) :xyz}
sl@0
   580
do_test printf-2.1.4.9 {
sl@0
   581
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 0.0
sl@0
   582
} {abc: 1 1 (0) :xyz}
sl@0
   583
do_test printf-2.1.5.1 {
sl@0
   584
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 100.0
sl@0
   585
} {abc: (100.0) :xyz}
sl@0
   586
do_test printf-2.1.5.2 {
sl@0
   587
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 100.0
sl@0
   588
} {abc: (1.0e+02) :xyz}
sl@0
   589
do_test printf-2.1.5.3 {
sl@0
   590
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 100.0
sl@0
   591
} {abc: (1e+02) :xyz}
sl@0
   592
do_test printf-2.1.5.4 {
sl@0
   593
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 100.0
sl@0
   594
} {abc: 1 1 (100) :xyz}
sl@0
   595
do_test printf-2.1.5.5 {
sl@0
   596
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 100.0
sl@0
   597
} {abc: 1 1 (100.000) :xyz}
sl@0
   598
do_test printf-2.1.5.6 {
sl@0
   599
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 100.0
sl@0
   600
} {abc: 1 1 (0000000100) :xyz}
sl@0
   601
do_test printf-2.1.5.7 {
sl@0
   602
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 100.0
sl@0
   603
} {abc: 1 1 (100.0) :xyz}
sl@0
   604
do_test printf-2.1.5.8 {
sl@0
   605
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 100.0
sl@0
   606
} {abc: 1 1 (1.0e+02) :xyz}
sl@0
   607
do_test printf-2.1.5.9 {
sl@0
   608
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 100.0
sl@0
   609
} {abc: 1 1 (1e+02) :xyz}
sl@0
   610
do_test printf-2.1.6.1 {
sl@0
   611
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 9.99999
sl@0
   612
} {abc: (10.0) :xyz}
sl@0
   613
do_test printf-2.1.6.2 {
sl@0
   614
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 9.99999
sl@0
   615
} {abc: (1.0e+01) :xyz}
sl@0
   616
do_test printf-2.1.6.3 {
sl@0
   617
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 9.99999
sl@0
   618
} {abc: (1e+01) :xyz}
sl@0
   619
do_test printf-2.1.6.4 {
sl@0
   620
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 9.99999
sl@0
   621
} {abc: 1 1 (9.99999) :xyz}
sl@0
   622
do_test printf-2.1.6.5 {
sl@0
   623
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 9.99999
sl@0
   624
} {abc: 1 1 (9.99999) :xyz}
sl@0
   625
do_test printf-2.1.6.6 {
sl@0
   626
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 9.99999
sl@0
   627
} {abc: 1 1 (0009.99999) :xyz}
sl@0
   628
do_test printf-2.1.6.7 {
sl@0
   629
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 9.99999
sl@0
   630
} {abc: 1 1 (10.0) :xyz}
sl@0
   631
do_test printf-2.1.6.8 {
sl@0
   632
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 9.99999
sl@0
   633
} {abc: 1 1 (1.0e+01) :xyz}
sl@0
   634
do_test printf-2.1.6.9 {
sl@0
   635
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 9.99999
sl@0
   636
} {abc: 1 1 (1e+01) :xyz}
sl@0
   637
do_test printf-2.1.7.1 {
sl@0
   638
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 -0.00543
sl@0
   639
} {abc: (-0.0) :xyz}
sl@0
   640
do_test printf-2.1.7.2 {
sl@0
   641
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 -0.00543
sl@0
   642
} {abc: (-5.4e-03) :xyz}
sl@0
   643
do_test printf-2.1.7.3 {
sl@0
   644
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 -0.00543
sl@0
   645
} {abc: (-0.005) :xyz}
sl@0
   646
do_test printf-2.1.7.4 {
sl@0
   647
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 -0.00543
sl@0
   648
} {abc: 1 1 (-0.00543) :xyz}
sl@0
   649
do_test printf-2.1.7.5 {
sl@0
   650
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 -0.00543
sl@0
   651
} {abc: 1 1 (-0.00543000) :xyz}
sl@0
   652
do_test printf-2.1.7.6 {
sl@0
   653
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 -0.00543
sl@0
   654
} {abc: 1 1 (-000.00543) :xyz}
sl@0
   655
do_test printf-2.1.7.7 {
sl@0
   656
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 -0.00543
sl@0
   657
} {abc: 1 1 (-0.0) :xyz}
sl@0
   658
do_test printf-2.1.7.8 {
sl@0
   659
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 -0.00543
sl@0
   660
} {abc: 1 1 (-5.4e-03) :xyz}
sl@0
   661
do_test printf-2.1.7.9 {
sl@0
   662
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 -0.00543
sl@0
   663
} {abc: 1 1 (-0.005) :xyz}
sl@0
   664
do_test printf-2.1.8.1 {
sl@0
   665
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 -1.0
sl@0
   666
} {abc: (-1.0) :xyz}
sl@0
   667
do_test printf-2.1.8.2 {
sl@0
   668
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 -1.0
sl@0
   669
} {abc: (-1.0e+00) :xyz}
sl@0
   670
do_test printf-2.1.8.3 {
sl@0
   671
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 -1.0
sl@0
   672
} {abc: (-1) :xyz}
sl@0
   673
do_test printf-2.1.8.4 {
sl@0
   674
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 -1.0
sl@0
   675
} {abc: 1 1 (-1) :xyz}
sl@0
   676
do_test printf-2.1.8.5 {
sl@0
   677
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 -1.0
sl@0
   678
} {abc: 1 1 (-1.00000) :xyz}
sl@0
   679
do_test printf-2.1.8.6 {
sl@0
   680
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 -1.0
sl@0
   681
} {abc: 1 1 (-000000001) :xyz}
sl@0
   682
do_test printf-2.1.8.7 {
sl@0
   683
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 -1.0
sl@0
   684
} {abc: 1 1 (-1.0) :xyz}
sl@0
   685
do_test printf-2.1.8.8 {
sl@0
   686
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 -1.0
sl@0
   687
} {abc: 1 1 (-1.0e+00) :xyz}
sl@0
   688
do_test printf-2.1.8.9 {
sl@0
   689
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 -1.0
sl@0
   690
} {abc: 1 1 (-1) :xyz}
sl@0
   691
do_test printf-2.1.9.1 {
sl@0
   692
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 -99.99999
sl@0
   693
} {abc: (-100.0) :xyz}
sl@0
   694
do_test printf-2.1.9.2 {
sl@0
   695
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 -99.99999
sl@0
   696
} {abc: (-1.0e+02) :xyz}
sl@0
   697
do_test printf-2.1.9.3 {
sl@0
   698
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 -99.99999
sl@0
   699
} {abc: (-1e+02) :xyz}
sl@0
   700
do_test printf-2.1.9.4 {
sl@0
   701
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 -99.99999
sl@0
   702
} {abc: 1 1 (-100) :xyz}
sl@0
   703
do_test printf-2.1.9.5 {
sl@0
   704
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 -99.99999
sl@0
   705
} {abc: 1 1 (-100.000) :xyz}
sl@0
   706
do_test printf-2.1.9.6 {
sl@0
   707
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 -99.99999
sl@0
   708
} {abc: 1 1 (-000000100) :xyz}
sl@0
   709
do_test printf-2.1.9.7 {
sl@0
   710
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 -99.99999
sl@0
   711
} {abc: 1 1 (-100.0) :xyz}
sl@0
   712
do_test printf-2.1.9.8 {
sl@0
   713
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 -99.99999
sl@0
   714
} {abc: 1 1 (-1.0e+02) :xyz}
sl@0
   715
do_test printf-2.1.9.9 {
sl@0
   716
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 -99.99999
sl@0
   717
} {abc: 1 1 (-1e+02) :xyz}
sl@0
   718
do_test printf-2.1.10.1 {
sl@0
   719
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 3.14e+9
sl@0
   720
} {abc: (3140000000.0) :xyz}
sl@0
   721
do_test printf-2.1.10.2 {
sl@0
   722
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 3.14e+9
sl@0
   723
} {abc: (3.1e+09) :xyz}
sl@0
   724
do_test printf-2.1.10.3 {
sl@0
   725
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 3.14e+9
sl@0
   726
} {abc: (3e+09) :xyz}
sl@0
   727
do_test printf-2.1.10.4 {
sl@0
   728
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 3.14e+9
sl@0
   729
} {abc: 1 1 (3.14e+09) :xyz}
sl@0
   730
do_test printf-2.1.10.5 {
sl@0
   731
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 3.14e+9
sl@0
   732
} {abc: 1 1 (3.14000e+09) :xyz}
sl@0
   733
do_test printf-2.1.10.6 {
sl@0
   734
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 3.14e+9
sl@0
   735
} {abc: 1 1 (003.14e+09) :xyz}
sl@0
   736
do_test printf-2.1.10.7 {
sl@0
   737
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 3.14e+9
sl@0
   738
} {abc: 1 1 (3140000000.0) :xyz}
sl@0
   739
do_test printf-2.1.10.8 {
sl@0
   740
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 3.14e+9
sl@0
   741
} {abc: 1 1 (3.1e+09) :xyz}
sl@0
   742
do_test printf-2.1.10.9 {
sl@0
   743
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 3.14e+9
sl@0
   744
} {abc: 1 1 (3e+09) :xyz}
sl@0
   745
do_test printf-2.1.11.2 {
sl@0
   746
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 -4.72732e+88
sl@0
   747
} {abc: (-4.7e+88) :xyz}
sl@0
   748
do_test printf-2.1.11.3 {
sl@0
   749
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 -4.72732e+88
sl@0
   750
} {abc: (-5e+88) :xyz}
sl@0
   751
do_test printf-2.1.11.4 {
sl@0
   752
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 -4.72732e+88
sl@0
   753
} {abc: 1 1 (-4.72732e+88) :xyz}
sl@0
   754
do_test printf-2.1.11.5 {
sl@0
   755
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 -4.72732e+88
sl@0
   756
} {abc: 1 1 (-4.72732e+88) :xyz}
sl@0
   757
do_test printf-2.1.11.6 {
sl@0
   758
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 -4.72732e+88
sl@0
   759
} {abc: 1 1 (-4.72732e+88) :xyz}
sl@0
   760
do_test printf-2.1.11.8 {
sl@0
   761
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 -4.72732e+88
sl@0
   762
} {abc: 1 1 (-4.7e+88) :xyz}
sl@0
   763
do_test printf-2.1.11.9 {
sl@0
   764
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 -4.72732e+88
sl@0
   765
} {abc: 1 1 (-5e+88) :xyz}
sl@0
   766
do_test printf-2.1.12.2 {
sl@0
   767
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 9.87991e+143
sl@0
   768
} {abc: (9.9e+143) :xyz}
sl@0
   769
do_test printf-2.1.12.3 {
sl@0
   770
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 9.87991e+143
sl@0
   771
} {abc: (1e+144) :xyz}
sl@0
   772
do_test printf-2.1.12.4 {
sl@0
   773
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 9.87991e+143
sl@0
   774
} {abc: 1 1 (9.87991e+143) :xyz}
sl@0
   775
do_test printf-2.1.12.5 {
sl@0
   776
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 9.87991e+143
sl@0
   777
} {abc: 1 1 (9.87991e+143) :xyz}
sl@0
   778
do_test printf-2.1.12.6 {
sl@0
   779
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 9.87991e+143
sl@0
   780
} {abc: 1 1 (9.87991e+143) :xyz}
sl@0
   781
do_test printf-2.1.12.8 {
sl@0
   782
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 9.87991e+143
sl@0
   783
} {abc: 1 1 (9.9e+143) :xyz}
sl@0
   784
do_test printf-2.1.12.9 {
sl@0
   785
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 9.87991e+143
sl@0
   786
} {abc: 1 1 (1e+144) :xyz}
sl@0
   787
do_test printf-2.1.13.1 {
sl@0
   788
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 -6.287291e-9
sl@0
   789
} {abc: (-0.0) :xyz}
sl@0
   790
do_test printf-2.1.13.2 {
sl@0
   791
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 -6.287291e-9
sl@0
   792
} {abc: (-6.3e-09) :xyz}
sl@0
   793
do_test printf-2.1.13.3 {
sl@0
   794
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 -6.287291e-9
sl@0
   795
} {abc: (-6e-09) :xyz}
sl@0
   796
do_test printf-2.1.13.4 {
sl@0
   797
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 -6.287291e-9
sl@0
   798
} {abc: 1 1 (-6.28729e-09) :xyz}
sl@0
   799
do_test printf-2.1.13.5 {
sl@0
   800
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 -6.287291e-9
sl@0
   801
} {abc: 1 1 (-6.28729e-09) :xyz}
sl@0
   802
do_test printf-2.1.13.6 {
sl@0
   803
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 -6.287291e-9
sl@0
   804
} {abc: 1 1 (-6.28729e-09) :xyz}
sl@0
   805
do_test printf-2.1.13.7 {
sl@0
   806
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 -6.287291e-9
sl@0
   807
} {abc: 1 1 (-0.0) :xyz}
sl@0
   808
do_test printf-2.1.13.8 {
sl@0
   809
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 -6.287291e-9
sl@0
   810
} {abc: 1 1 (-6.3e-09) :xyz}
sl@0
   811
do_test printf-2.1.13.9 {
sl@0
   812
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 -6.287291e-9
sl@0
   813
} {abc: 1 1 (-6e-09) :xyz}
sl@0
   814
do_test printf-2.1.14.1 {
sl@0
   815
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 1 1 3.38826392e-110
sl@0
   816
} {abc: (0.0) :xyz}
sl@0
   817
do_test printf-2.1.14.2 {
sl@0
   818
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 1 1 3.38826392e-110
sl@0
   819
} {abc: (3.4e-110) :xyz}
sl@0
   820
do_test printf-2.1.14.3 {
sl@0
   821
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 3.38826392e-110
sl@0
   822
} {abc: (3e-110) :xyz}
sl@0
   823
do_test printf-2.1.14.4 {
sl@0
   824
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 1 1 3.38826392e-110
sl@0
   825
} {abc: 1 1 (3.38826e-110) :xyz}
sl@0
   826
do_test printf-2.1.14.5 {
sl@0
   827
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 1 1 3.38826392e-110
sl@0
   828
} {abc: 1 1 (3.38826e-110) :xyz}
sl@0
   829
do_test printf-2.1.14.6 {
sl@0
   830
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 1 1 3.38826392e-110
sl@0
   831
} {abc: 1 1 (3.38826e-110) :xyz}
sl@0
   832
do_test printf-2.1.14.7 {
sl@0
   833
  sqlite3_mprintf_double {abc: %d %d (%1.1f) :xyz} 1 1 3.38826392e-110
sl@0
   834
} {abc: 1 1 (0.0) :xyz}
sl@0
   835
do_test printf-2.1.14.8 {
sl@0
   836
  sqlite3_mprintf_double {abc: %d %d (%1.1e) :xyz} 1 1 3.38826392e-110
sl@0
   837
} {abc: 1 1 (3.4e-110) :xyz}
sl@0
   838
do_test printf-2.1.14.9 {
sl@0
   839
  sqlite3_mprintf_double {abc: %d %d (%1.1g) :xyz} 1 1 3.38826392e-110
sl@0
   840
} {abc: 1 1 (3e-110) :xyz}
sl@0
   841
do_test printf-2.2.1.1 {
sl@0
   842
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 0.001
sl@0
   843
} {abc: (0.00100) :xyz}
sl@0
   844
do_test printf-2.2.1.2 {
sl@0
   845
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 0.001
sl@0
   846
} {abc: (1.00000e-03) :xyz}
sl@0
   847
do_test printf-2.2.1.3 {
sl@0
   848
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 0.001
sl@0
   849
} {abc: (0.001) :xyz}
sl@0
   850
do_test printf-2.2.1.4 {
sl@0
   851
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 0.001
sl@0
   852
} {abc: 5 5 (0.001) :xyz}
sl@0
   853
do_test printf-2.2.1.5 {
sl@0
   854
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 0.001
sl@0
   855
} {abc: 5 5 (0.00100000) :xyz}
sl@0
   856
do_test printf-2.2.1.6 {
sl@0
   857
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 0.001
sl@0
   858
} {abc: 5 5 (000000.001) :xyz}
sl@0
   859
do_test printf-2.2.1.7 {
sl@0
   860
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 0.001
sl@0
   861
} {abc: 5 5 (0.00100) :xyz}
sl@0
   862
do_test printf-2.2.1.8 {
sl@0
   863
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 0.001
sl@0
   864
} {abc: 5 5 (1.00000e-03) :xyz}
sl@0
   865
do_test printf-2.2.1.9 {
sl@0
   866
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 0.001
sl@0
   867
} {abc: 5 5 (0.001) :xyz}
sl@0
   868
do_test printf-2.2.2.1 {
sl@0
   869
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 1.0e-20
sl@0
   870
} {abc: (0.00000) :xyz}
sl@0
   871
do_test printf-2.2.2.2 {
sl@0
   872
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 1.0e-20
sl@0
   873
} {abc: (1.00000e-20) :xyz}
sl@0
   874
do_test printf-2.2.2.3 {
sl@0
   875
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 1.0e-20
sl@0
   876
} {abc: (1e-20) :xyz}
sl@0
   877
do_test printf-2.2.2.4 {
sl@0
   878
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 1.0e-20
sl@0
   879
} {abc: 5 5 (1e-20) :xyz}
sl@0
   880
do_test printf-2.2.2.5 {
sl@0
   881
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 1.0e-20
sl@0
   882
} {abc: 5 5 (1.00000e-20) :xyz}
sl@0
   883
do_test printf-2.2.2.6 {
sl@0
   884
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 1.0e-20
sl@0
   885
} {abc: 5 5 (000001e-20) :xyz}
sl@0
   886
do_test printf-2.2.2.7 {
sl@0
   887
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 1.0e-20
sl@0
   888
} {abc: 5 5 (0.00000) :xyz}
sl@0
   889
do_test printf-2.2.2.8 {
sl@0
   890
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 1.0e-20
sl@0
   891
} {abc: 5 5 (1.00000e-20) :xyz}
sl@0
   892
do_test printf-2.2.2.9 {
sl@0
   893
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 1.0e-20
sl@0
   894
} {abc: 5 5 (1e-20) :xyz}
sl@0
   895
do_test printf-2.2.3.1 {
sl@0
   896
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 1.0
sl@0
   897
} {abc: (1.00000) :xyz}
sl@0
   898
do_test printf-2.2.3.2 {
sl@0
   899
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 1.0
sl@0
   900
} {abc: (1.00000e+00) :xyz}
sl@0
   901
do_test printf-2.2.3.3 {
sl@0
   902
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 1.0
sl@0
   903
} {abc: (    1) :xyz}
sl@0
   904
do_test printf-2.2.3.4 {
sl@0
   905
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 1.0
sl@0
   906
} {abc: 5 5 (1) :xyz}
sl@0
   907
do_test printf-2.2.3.5 {
sl@0
   908
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 1.0
sl@0
   909
} {abc: 5 5 (1.00000) :xyz}
sl@0
   910
do_test printf-2.2.3.6 {
sl@0
   911
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 1.0
sl@0
   912
} {abc: 5 5 (0000000001) :xyz}
sl@0
   913
do_test printf-2.2.3.7 {
sl@0
   914
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 1.0
sl@0
   915
} {abc: 5 5 (1.00000) :xyz}
sl@0
   916
do_test printf-2.2.3.8 {
sl@0
   917
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 1.0
sl@0
   918
} {abc: 5 5 (1.00000e+00) :xyz}
sl@0
   919
do_test printf-2.2.3.9 {
sl@0
   920
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 1.0
sl@0
   921
} {abc: 5 5 (    1) :xyz}
sl@0
   922
do_test printf-2.2.4.1 {
sl@0
   923
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 0.0
sl@0
   924
} {abc: (0.00000) :xyz}
sl@0
   925
do_test printf-2.2.4.2 {
sl@0
   926
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 0.0
sl@0
   927
} {abc: (0.00000e+00) :xyz}
sl@0
   928
do_test printf-2.2.4.3 {
sl@0
   929
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 0.0
sl@0
   930
} {abc: (    0) :xyz}
sl@0
   931
do_test printf-2.2.4.4 {
sl@0
   932
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 0.0
sl@0
   933
} {abc: 5 5 (0) :xyz}
sl@0
   934
do_test printf-2.2.4.5 {
sl@0
   935
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 0.0
sl@0
   936
} {abc: 5 5 (0.00000) :xyz}
sl@0
   937
do_test printf-2.2.4.6 {
sl@0
   938
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 0.0
sl@0
   939
} {abc: 5 5 (0000000000) :xyz}
sl@0
   940
do_test printf-2.2.4.7 {
sl@0
   941
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 0.0
sl@0
   942
} {abc: 5 5 (0.00000) :xyz}
sl@0
   943
do_test printf-2.2.4.8 {
sl@0
   944
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 0.0
sl@0
   945
} {abc: 5 5 (0.00000e+00) :xyz}
sl@0
   946
do_test printf-2.2.4.9 {
sl@0
   947
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 0.0
sl@0
   948
} {abc: 5 5 (    0) :xyz}
sl@0
   949
do_test printf-2.2.5.1 {
sl@0
   950
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 100.0
sl@0
   951
} {abc: (100.00000) :xyz}
sl@0
   952
do_test printf-2.2.5.2 {
sl@0
   953
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 100.0
sl@0
   954
} {abc: (1.00000e+02) :xyz}
sl@0
   955
do_test printf-2.2.5.3 {
sl@0
   956
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 100.0
sl@0
   957
} {abc: (  100) :xyz}
sl@0
   958
do_test printf-2.2.5.4 {
sl@0
   959
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 100.0
sl@0
   960
} {abc: 5 5 (100) :xyz}
sl@0
   961
do_test printf-2.2.5.5 {
sl@0
   962
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 100.0
sl@0
   963
} {abc: 5 5 (100.000) :xyz}
sl@0
   964
do_test printf-2.2.5.6 {
sl@0
   965
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 100.0
sl@0
   966
} {abc: 5 5 (0000000100) :xyz}
sl@0
   967
do_test printf-2.2.5.7 {
sl@0
   968
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 100.0
sl@0
   969
} {abc: 5 5 (100.00000) :xyz}
sl@0
   970
do_test printf-2.2.5.8 {
sl@0
   971
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 100.0
sl@0
   972
} {abc: 5 5 (1.00000e+02) :xyz}
sl@0
   973
do_test printf-2.2.5.9 {
sl@0
   974
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 100.0
sl@0
   975
} {abc: 5 5 (  100) :xyz}
sl@0
   976
do_test printf-2.2.6.1 {
sl@0
   977
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 9.99999
sl@0
   978
} {abc: (9.99999) :xyz}
sl@0
   979
do_test printf-2.2.6.2 {
sl@0
   980
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 9.99999
sl@0
   981
} {abc: (9.99999e+00) :xyz}
sl@0
   982
do_test printf-2.2.6.3 {
sl@0
   983
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 9.99999
sl@0
   984
} {abc: (   10) :xyz}
sl@0
   985
do_test printf-2.2.6.4 {
sl@0
   986
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 9.99999
sl@0
   987
} {abc: 5 5 (9.99999) :xyz}
sl@0
   988
do_test printf-2.2.6.5 {
sl@0
   989
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 9.99999
sl@0
   990
} {abc: 5 5 (9.99999) :xyz}
sl@0
   991
do_test printf-2.2.6.6 {
sl@0
   992
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 9.99999
sl@0
   993
} {abc: 5 5 (0009.99999) :xyz}
sl@0
   994
do_test printf-2.2.6.7 {
sl@0
   995
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 9.99999
sl@0
   996
} {abc: 5 5 (9.99999) :xyz}
sl@0
   997
do_test printf-2.2.6.8 {
sl@0
   998
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 9.99999
sl@0
   999
} {abc: 5 5 (9.99999e+00) :xyz}
sl@0
  1000
do_test printf-2.2.6.9 {
sl@0
  1001
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 9.99999
sl@0
  1002
} {abc: 5 5 (   10) :xyz}
sl@0
  1003
do_test printf-2.2.7.1 {
sl@0
  1004
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 -0.00543
sl@0
  1005
} {abc: (-0.00543) :xyz}
sl@0
  1006
do_test printf-2.2.7.2 {
sl@0
  1007
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 -0.00543
sl@0
  1008
} {abc: (-5.43000e-03) :xyz}
sl@0
  1009
do_test printf-2.2.7.3 {
sl@0
  1010
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 -0.00543
sl@0
  1011
} {abc: (-0.00543) :xyz}
sl@0
  1012
do_test printf-2.2.7.4 {
sl@0
  1013
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 -0.00543
sl@0
  1014
} {abc: 5 5 (-0.00543) :xyz}
sl@0
  1015
do_test printf-2.2.7.5 {
sl@0
  1016
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 -0.00543
sl@0
  1017
} {abc: 5 5 (-0.00543000) :xyz}
sl@0
  1018
do_test printf-2.2.7.6 {
sl@0
  1019
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 -0.00543
sl@0
  1020
} {abc: 5 5 (-000.00543) :xyz}
sl@0
  1021
do_test printf-2.2.7.7 {
sl@0
  1022
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 -0.00543
sl@0
  1023
} {abc: 5 5 (-0.00543) :xyz}
sl@0
  1024
do_test printf-2.2.7.8 {
sl@0
  1025
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 -0.00543
sl@0
  1026
} {abc: 5 5 (-5.43000e-03) :xyz}
sl@0
  1027
do_test printf-2.2.7.9 {
sl@0
  1028
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 -0.00543
sl@0
  1029
} {abc: 5 5 (-0.00543) :xyz}
sl@0
  1030
do_test printf-2.2.8.1 {
sl@0
  1031
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 -1.0
sl@0
  1032
} {abc: (-1.00000) :xyz}
sl@0
  1033
do_test printf-2.2.8.2 {
sl@0
  1034
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 -1.0
sl@0
  1035
} {abc: (-1.00000e+00) :xyz}
sl@0
  1036
do_test printf-2.2.8.3 {
sl@0
  1037
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 -1.0
sl@0
  1038
} {abc: (   -1) :xyz}
sl@0
  1039
do_test printf-2.2.8.4 {
sl@0
  1040
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 -1.0
sl@0
  1041
} {abc: 5 5 (-1) :xyz}
sl@0
  1042
do_test printf-2.2.8.5 {
sl@0
  1043
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 -1.0
sl@0
  1044
} {abc: 5 5 (-1.00000) :xyz}
sl@0
  1045
do_test printf-2.2.8.6 {
sl@0
  1046
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 -1.0
sl@0
  1047
} {abc: 5 5 (-000000001) :xyz}
sl@0
  1048
do_test printf-2.2.8.7 {
sl@0
  1049
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 -1.0
sl@0
  1050
} {abc: 5 5 (-1.00000) :xyz}
sl@0
  1051
do_test printf-2.2.8.8 {
sl@0
  1052
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 -1.0
sl@0
  1053
} {abc: 5 5 (-1.00000e+00) :xyz}
sl@0
  1054
do_test printf-2.2.8.9 {
sl@0
  1055
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 -1.0
sl@0
  1056
} {abc: 5 5 (   -1) :xyz}
sl@0
  1057
do_test printf-2.2.9.1 {
sl@0
  1058
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 -99.99999
sl@0
  1059
} {abc: (-99.99999) :xyz}
sl@0
  1060
do_test printf-2.2.9.2 {
sl@0
  1061
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 -99.99999
sl@0
  1062
} {abc: (-1.00000e+02) :xyz}
sl@0
  1063
do_test printf-2.2.9.3 {
sl@0
  1064
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 -99.99999
sl@0
  1065
} {abc: ( -100) :xyz}
sl@0
  1066
do_test printf-2.2.9.4 {
sl@0
  1067
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 -99.99999
sl@0
  1068
} {abc: 5 5 (-100) :xyz}
sl@0
  1069
do_test printf-2.2.9.5 {
sl@0
  1070
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 -99.99999
sl@0
  1071
} {abc: 5 5 (-100.000) :xyz}
sl@0
  1072
do_test printf-2.2.9.6 {
sl@0
  1073
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 -99.99999
sl@0
  1074
} {abc: 5 5 (-000000100) :xyz}
sl@0
  1075
do_test printf-2.2.9.7 {
sl@0
  1076
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 -99.99999
sl@0
  1077
} {abc: 5 5 (-99.99999) :xyz}
sl@0
  1078
do_test printf-2.2.9.8 {
sl@0
  1079
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 -99.99999
sl@0
  1080
} {abc: 5 5 (-1.00000e+02) :xyz}
sl@0
  1081
do_test printf-2.2.9.9 {
sl@0
  1082
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 -99.99999
sl@0
  1083
} {abc: 5 5 ( -100) :xyz}
sl@0
  1084
do_test printf-2.2.10.1 {
sl@0
  1085
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 3.14e+9
sl@0
  1086
} {abc: (3140000000.00000) :xyz}
sl@0
  1087
do_test printf-2.2.10.2 {
sl@0
  1088
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 3.14e+9
sl@0
  1089
} {abc: (3.14000e+09) :xyz}
sl@0
  1090
do_test printf-2.2.10.3 {
sl@0
  1091
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 3.14e+9
sl@0
  1092
} {abc: (3.14e+09) :xyz}
sl@0
  1093
do_test printf-2.2.10.4 {
sl@0
  1094
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 3.14e+9
sl@0
  1095
} {abc: 5 5 (3.14e+09) :xyz}
sl@0
  1096
do_test printf-2.2.10.5 {
sl@0
  1097
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 3.14e+9
sl@0
  1098
} {abc: 5 5 (3.14000e+09) :xyz}
sl@0
  1099
do_test printf-2.2.10.6 {
sl@0
  1100
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 3.14e+9
sl@0
  1101
} {abc: 5 5 (003.14e+09) :xyz}
sl@0
  1102
do_test printf-2.2.10.7 {
sl@0
  1103
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 3.14e+9
sl@0
  1104
} {abc: 5 5 (3140000000.00000) :xyz}
sl@0
  1105
do_test printf-2.2.10.8 {
sl@0
  1106
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 3.14e+9
sl@0
  1107
} {abc: 5 5 (3.14000e+09) :xyz}
sl@0
  1108
do_test printf-2.2.10.9 {
sl@0
  1109
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 3.14e+9
sl@0
  1110
} {abc: 5 5 (3.14e+09) :xyz}
sl@0
  1111
do_test printf-2.2.11.2 {
sl@0
  1112
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 -4.72732e+88
sl@0
  1113
} {abc: (-4.72732e+88) :xyz}
sl@0
  1114
do_test printf-2.2.11.3 {
sl@0
  1115
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 -4.72732e+88
sl@0
  1116
} {abc: (-4.7273e+88) :xyz}
sl@0
  1117
do_test printf-2.2.11.4 {
sl@0
  1118
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 -4.72732e+88
sl@0
  1119
} {abc: 5 5 (-4.72732e+88) :xyz}
sl@0
  1120
do_test printf-2.2.11.5 {
sl@0
  1121
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 -4.72732e+88
sl@0
  1122
} {abc: 5 5 (-4.72732e+88) :xyz}
sl@0
  1123
do_test printf-2.2.11.6 {
sl@0
  1124
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 -4.72732e+88
sl@0
  1125
} {abc: 5 5 (-4.72732e+88) :xyz}
sl@0
  1126
do_test printf-2.2.11.8 {
sl@0
  1127
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 -4.72732e+88
sl@0
  1128
} {abc: 5 5 (-4.72732e+88) :xyz}
sl@0
  1129
do_test printf-2.2.11.9 {
sl@0
  1130
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 -4.72732e+88
sl@0
  1131
} {abc: 5 5 (-4.7273e+88) :xyz}
sl@0
  1132
do_test printf-2.2.12.2 {
sl@0
  1133
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 9.87991e+143
sl@0
  1134
} {abc: (9.87991e+143) :xyz}
sl@0
  1135
do_test printf-2.2.12.3 {
sl@0
  1136
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 9.87991e+143
sl@0
  1137
} {abc: (9.8799e+143) :xyz}
sl@0
  1138
do_test printf-2.2.12.4 {
sl@0
  1139
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 9.87991e+143
sl@0
  1140
} {abc: 5 5 (9.87991e+143) :xyz}
sl@0
  1141
do_test printf-2.2.12.5 {
sl@0
  1142
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 9.87991e+143
sl@0
  1143
} {abc: 5 5 (9.87991e+143) :xyz}
sl@0
  1144
do_test printf-2.2.12.6 {
sl@0
  1145
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 9.87991e+143
sl@0
  1146
} {abc: 5 5 (9.87991e+143) :xyz}
sl@0
  1147
do_test printf-2.2.12.8 {
sl@0
  1148
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 9.87991e+143
sl@0
  1149
} {abc: 5 5 (9.87991e+143) :xyz}
sl@0
  1150
do_test printf-2.2.12.9 {
sl@0
  1151
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 9.87991e+143
sl@0
  1152
} {abc: 5 5 (9.8799e+143) :xyz}
sl@0
  1153
do_test printf-2.2.13.1 {
sl@0
  1154
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 -6.287291e-9
sl@0
  1155
} {abc: (-0.00000) :xyz}
sl@0
  1156
do_test printf-2.2.13.2 {
sl@0
  1157
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 -6.287291e-9
sl@0
  1158
} {abc: (-6.28729e-09) :xyz}
sl@0
  1159
do_test printf-2.2.13.3 {
sl@0
  1160
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 -6.287291e-9
sl@0
  1161
} {abc: (-6.2873e-09) :xyz}
sl@0
  1162
do_test printf-2.2.13.4 {
sl@0
  1163
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 -6.287291e-9
sl@0
  1164
} {abc: 5 5 (-6.28729e-09) :xyz}
sl@0
  1165
do_test printf-2.2.13.5 {
sl@0
  1166
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 -6.287291e-9
sl@0
  1167
} {abc: 5 5 (-6.28729e-09) :xyz}
sl@0
  1168
do_test printf-2.2.13.6 {
sl@0
  1169
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 -6.287291e-9
sl@0
  1170
} {abc: 5 5 (-6.28729e-09) :xyz}
sl@0
  1171
do_test printf-2.2.13.7 {
sl@0
  1172
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 -6.287291e-9
sl@0
  1173
} {abc: 5 5 (-0.00000) :xyz}
sl@0
  1174
do_test printf-2.2.13.8 {
sl@0
  1175
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 -6.287291e-9
sl@0
  1176
} {abc: 5 5 (-6.28729e-09) :xyz}
sl@0
  1177
do_test printf-2.2.13.9 {
sl@0
  1178
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 -6.287291e-9
sl@0
  1179
} {abc: 5 5 (-6.2873e-09) :xyz}
sl@0
  1180
do_test printf-2.2.14.1 {
sl@0
  1181
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 5 5 3.38826392e-110
sl@0
  1182
} {abc: (0.00000) :xyz}
sl@0
  1183
do_test printf-2.2.14.2 {
sl@0
  1184
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 5 5 3.38826392e-110
sl@0
  1185
} {abc: (3.38826e-110) :xyz}
sl@0
  1186
do_test printf-2.2.14.3 {
sl@0
  1187
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 5 5 3.38826392e-110
sl@0
  1188
} {abc: (3.3883e-110) :xyz}
sl@0
  1189
do_test printf-2.2.14.4 {
sl@0
  1190
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 5 5 3.38826392e-110
sl@0
  1191
} {abc: 5 5 (3.38826e-110) :xyz}
sl@0
  1192
do_test printf-2.2.14.5 {
sl@0
  1193
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 5 5 3.38826392e-110
sl@0
  1194
} {abc: 5 5 (3.38826e-110) :xyz}
sl@0
  1195
do_test printf-2.2.14.6 {
sl@0
  1196
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 5 5 3.38826392e-110
sl@0
  1197
} {abc: 5 5 (3.38826e-110) :xyz}
sl@0
  1198
do_test printf-2.2.14.7 {
sl@0
  1199
  sqlite3_mprintf_double {abc: %d %d (%5.5f) :xyz} 5 5 3.38826392e-110
sl@0
  1200
} {abc: 5 5 (0.00000) :xyz}
sl@0
  1201
do_test printf-2.2.14.8 {
sl@0
  1202
  sqlite3_mprintf_double {abc: %d %d (%5.5e) :xyz} 5 5 3.38826392e-110
sl@0
  1203
} {abc: 5 5 (3.38826e-110) :xyz}
sl@0
  1204
do_test printf-2.2.14.9 {
sl@0
  1205
  sqlite3_mprintf_double {abc: %d %d (%5.5g) :xyz} 5 5 3.38826392e-110
sl@0
  1206
} {abc: 5 5 (3.3883e-110) :xyz}
sl@0
  1207
do_test printf-2.3.1.1 {
sl@0
  1208
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 0.001
sl@0
  1209
} {abc: (0.0010000000) :xyz}
sl@0
  1210
do_test printf-2.3.1.2 {
sl@0
  1211
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 0.001
sl@0
  1212
} {abc: (1.0000000000e-03) :xyz}
sl@0
  1213
do_test printf-2.3.1.3 {
sl@0
  1214
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 0.001
sl@0
  1215
} {abc: (     0.001) :xyz}
sl@0
  1216
do_test printf-2.3.1.4 {
sl@0
  1217
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 0.001
sl@0
  1218
} {abc: 10 10 (0.001) :xyz}
sl@0
  1219
do_test printf-2.3.1.5 {
sl@0
  1220
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 0.001
sl@0
  1221
} {abc: 10 10 (0.00100000) :xyz}
sl@0
  1222
do_test printf-2.3.1.6 {
sl@0
  1223
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 0.001
sl@0
  1224
} {abc: 10 10 (000000.001) :xyz}
sl@0
  1225
do_test printf-2.3.1.7 {
sl@0
  1226
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 0.001
sl@0
  1227
} {abc: 10 10 (0.0010000000) :xyz}
sl@0
  1228
do_test printf-2.3.1.8 {
sl@0
  1229
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 0.001
sl@0
  1230
} {abc: 10 10 (1.0000000000e-03) :xyz}
sl@0
  1231
do_test printf-2.3.1.9 {
sl@0
  1232
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 0.001
sl@0
  1233
} {abc: 10 10 (     0.001) :xyz}
sl@0
  1234
do_test printf-2.3.2.1 {
sl@0
  1235
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 1.0e-20
sl@0
  1236
} {abc: (0.0000000000) :xyz}
sl@0
  1237
do_test printf-2.3.2.2 {
sl@0
  1238
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 1.0e-20
sl@0
  1239
} {abc: (1.0000000000e-20) :xyz}
sl@0
  1240
do_test printf-2.3.2.3 {
sl@0
  1241
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 1.0e-20
sl@0
  1242
} {abc: (     1e-20) :xyz}
sl@0
  1243
do_test printf-2.3.2.4 {
sl@0
  1244
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 1.0e-20
sl@0
  1245
} {abc: 10 10 (1e-20) :xyz}
sl@0
  1246
do_test printf-2.3.2.5 {
sl@0
  1247
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 1.0e-20
sl@0
  1248
} {abc: 10 10 (1.00000e-20) :xyz}
sl@0
  1249
do_test printf-2.3.2.6 {
sl@0
  1250
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 1.0e-20
sl@0
  1251
} {abc: 10 10 (000001e-20) :xyz}
sl@0
  1252
do_test printf-2.3.2.7 {
sl@0
  1253
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 1.0e-20
sl@0
  1254
} {abc: 10 10 (0.0000000000) :xyz}
sl@0
  1255
do_test printf-2.3.2.8 {
sl@0
  1256
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 1.0e-20
sl@0
  1257
} {abc: 10 10 (1.0000000000e-20) :xyz}
sl@0
  1258
do_test printf-2.3.2.9 {
sl@0
  1259
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 1.0e-20
sl@0
  1260
} {abc: 10 10 (     1e-20) :xyz}
sl@0
  1261
do_test printf-2.3.3.1 {
sl@0
  1262
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 1.0
sl@0
  1263
} {abc: (1.0000000000) :xyz}
sl@0
  1264
do_test printf-2.3.3.2 {
sl@0
  1265
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 1.0
sl@0
  1266
} {abc: (1.0000000000e+00) :xyz}
sl@0
  1267
do_test printf-2.3.3.3 {
sl@0
  1268
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 1.0
sl@0
  1269
} {abc: (         1) :xyz}
sl@0
  1270
do_test printf-2.3.3.4 {
sl@0
  1271
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 1.0
sl@0
  1272
} {abc: 10 10 (1) :xyz}
sl@0
  1273
do_test printf-2.3.3.5 {
sl@0
  1274
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 1.0
sl@0
  1275
} {abc: 10 10 (1.00000) :xyz}
sl@0
  1276
do_test printf-2.3.3.6 {
sl@0
  1277
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 1.0
sl@0
  1278
} {abc: 10 10 (0000000001) :xyz}
sl@0
  1279
do_test printf-2.3.3.7 {
sl@0
  1280
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 1.0
sl@0
  1281
} {abc: 10 10 (1.0000000000) :xyz}
sl@0
  1282
do_test printf-2.3.3.8 {
sl@0
  1283
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 1.0
sl@0
  1284
} {abc: 10 10 (1.0000000000e+00) :xyz}
sl@0
  1285
do_test printf-2.3.3.9 {
sl@0
  1286
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 1.0
sl@0
  1287
} {abc: 10 10 (         1) :xyz}
sl@0
  1288
do_test printf-2.3.4.1 {
sl@0
  1289
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 0.0
sl@0
  1290
} {abc: (0.0000000000) :xyz}
sl@0
  1291
do_test printf-2.3.4.2 {
sl@0
  1292
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 0.0
sl@0
  1293
} {abc: (0.0000000000e+00) :xyz}
sl@0
  1294
do_test printf-2.3.4.3 {
sl@0
  1295
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 0.0
sl@0
  1296
} {abc: (         0) :xyz}
sl@0
  1297
do_test printf-2.3.4.4 {
sl@0
  1298
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 0.0
sl@0
  1299
} {abc: 10 10 (0) :xyz}
sl@0
  1300
do_test printf-2.3.4.5 {
sl@0
  1301
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 0.0
sl@0
  1302
} {abc: 10 10 (0.00000) :xyz}
sl@0
  1303
do_test printf-2.3.4.6 {
sl@0
  1304
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 0.0
sl@0
  1305
} {abc: 10 10 (0000000000) :xyz}
sl@0
  1306
do_test printf-2.3.4.7 {
sl@0
  1307
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 0.0
sl@0
  1308
} {abc: 10 10 (0.0000000000) :xyz}
sl@0
  1309
do_test printf-2.3.4.8 {
sl@0
  1310
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 0.0
sl@0
  1311
} {abc: 10 10 (0.0000000000e+00) :xyz}
sl@0
  1312
do_test printf-2.3.4.9 {
sl@0
  1313
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 0.0
sl@0
  1314
} {abc: 10 10 (         0) :xyz}
sl@0
  1315
do_test printf-2.3.5.1 {
sl@0
  1316
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 100.0
sl@0
  1317
} {abc: (100.0000000000) :xyz}
sl@0
  1318
do_test printf-2.3.5.2 {
sl@0
  1319
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 100.0
sl@0
  1320
} {abc: (1.0000000000e+02) :xyz}
sl@0
  1321
do_test printf-2.3.5.3 {
sl@0
  1322
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 100.0
sl@0
  1323
} {abc: (       100) :xyz}
sl@0
  1324
do_test printf-2.3.5.4 {
sl@0
  1325
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 100.0
sl@0
  1326
} {abc: 10 10 (100) :xyz}
sl@0
  1327
do_test printf-2.3.5.5 {
sl@0
  1328
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 100.0
sl@0
  1329
} {abc: 10 10 (100.000) :xyz}
sl@0
  1330
do_test printf-2.3.5.6 {
sl@0
  1331
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 100.0
sl@0
  1332
} {abc: 10 10 (0000000100) :xyz}
sl@0
  1333
do_test printf-2.3.5.7 {
sl@0
  1334
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 100.0
sl@0
  1335
} {abc: 10 10 (100.0000000000) :xyz}
sl@0
  1336
do_test printf-2.3.5.8 {
sl@0
  1337
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 100.0
sl@0
  1338
} {abc: 10 10 (1.0000000000e+02) :xyz}
sl@0
  1339
do_test printf-2.3.5.9 {
sl@0
  1340
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 100.0
sl@0
  1341
} {abc: 10 10 (       100) :xyz}
sl@0
  1342
do_test printf-2.3.6.1 {
sl@0
  1343
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 9.99999
sl@0
  1344
} {abc: (9.9999900000) :xyz}
sl@0
  1345
do_test printf-2.3.6.2 {
sl@0
  1346
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 9.99999
sl@0
  1347
} {abc: (9.9999900000e+00) :xyz}
sl@0
  1348
do_test printf-2.3.6.3 {
sl@0
  1349
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 9.99999
sl@0
  1350
} {abc: (   9.99999) :xyz}
sl@0
  1351
do_test printf-2.3.6.4 {
sl@0
  1352
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 9.99999
sl@0
  1353
} {abc: 10 10 (9.99999) :xyz}
sl@0
  1354
do_test printf-2.3.6.5 {
sl@0
  1355
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 9.99999
sl@0
  1356
} {abc: 10 10 (9.99999) :xyz}
sl@0
  1357
do_test printf-2.3.6.6 {
sl@0
  1358
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 9.99999
sl@0
  1359
} {abc: 10 10 (0009.99999) :xyz}
sl@0
  1360
do_test printf-2.3.6.7 {
sl@0
  1361
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 9.99999
sl@0
  1362
} {abc: 10 10 (9.9999900000) :xyz}
sl@0
  1363
do_test printf-2.3.6.8 {
sl@0
  1364
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 9.99999
sl@0
  1365
} {abc: 10 10 (9.9999900000e+00) :xyz}
sl@0
  1366
do_test printf-2.3.6.9 {
sl@0
  1367
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 9.99999
sl@0
  1368
} {abc: 10 10 (   9.99999) :xyz}
sl@0
  1369
do_test printf-2.3.7.1 {
sl@0
  1370
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 -0.00543
sl@0
  1371
} {abc: (-0.0054300000) :xyz}
sl@0
  1372
do_test printf-2.3.7.2 {
sl@0
  1373
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 -0.00543
sl@0
  1374
} {abc: (-5.4300000000e-03) :xyz}
sl@0
  1375
do_test printf-2.3.7.3 {
sl@0
  1376
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 -0.00543
sl@0
  1377
} {abc: (  -0.00543) :xyz}
sl@0
  1378
do_test printf-2.3.7.4 {
sl@0
  1379
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 -0.00543
sl@0
  1380
} {abc: 10 10 (-0.00543) :xyz}
sl@0
  1381
do_test printf-2.3.7.5 {
sl@0
  1382
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 -0.00543
sl@0
  1383
} {abc: 10 10 (-0.00543000) :xyz}
sl@0
  1384
do_test printf-2.3.7.6 {
sl@0
  1385
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 -0.00543
sl@0
  1386
} {abc: 10 10 (-000.00543) :xyz}
sl@0
  1387
do_test printf-2.3.7.7 {
sl@0
  1388
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 -0.00543
sl@0
  1389
} {abc: 10 10 (-0.0054300000) :xyz}
sl@0
  1390
do_test printf-2.3.7.8 {
sl@0
  1391
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 -0.00543
sl@0
  1392
} {abc: 10 10 (-5.4300000000e-03) :xyz}
sl@0
  1393
do_test printf-2.3.7.9 {
sl@0
  1394
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 -0.00543
sl@0
  1395
} {abc: 10 10 (  -0.00543) :xyz}
sl@0
  1396
do_test printf-2.3.8.1 {
sl@0
  1397
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 -1.0
sl@0
  1398
} {abc: (-1.0000000000) :xyz}
sl@0
  1399
do_test printf-2.3.8.2 {
sl@0
  1400
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 -1.0
sl@0
  1401
} {abc: (-1.0000000000e+00) :xyz}
sl@0
  1402
do_test printf-2.3.8.3 {
sl@0
  1403
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 -1.0
sl@0
  1404
} {abc: (        -1) :xyz}
sl@0
  1405
do_test printf-2.3.8.4 {
sl@0
  1406
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 -1.0
sl@0
  1407
} {abc: 10 10 (-1) :xyz}
sl@0
  1408
do_test printf-2.3.8.5 {
sl@0
  1409
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 -1.0
sl@0
  1410
} {abc: 10 10 (-1.00000) :xyz}
sl@0
  1411
do_test printf-2.3.8.6 {
sl@0
  1412
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 -1.0
sl@0
  1413
} {abc: 10 10 (-000000001) :xyz}
sl@0
  1414
do_test printf-2.3.8.7 {
sl@0
  1415
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 -1.0
sl@0
  1416
} {abc: 10 10 (-1.0000000000) :xyz}
sl@0
  1417
do_test printf-2.3.8.8 {
sl@0
  1418
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 -1.0
sl@0
  1419
} {abc: 10 10 (-1.0000000000e+00) :xyz}
sl@0
  1420
do_test printf-2.3.8.9 {
sl@0
  1421
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 -1.0
sl@0
  1422
} {abc: 10 10 (        -1) :xyz}
sl@0
  1423
do_test printf-2.3.9.1 {
sl@0
  1424
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 -99.99999
sl@0
  1425
} {abc: (-99.9999900000) :xyz}
sl@0
  1426
do_test printf-2.3.9.2 {
sl@0
  1427
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 -99.99999
sl@0
  1428
} {abc: (-9.9999990000e+01) :xyz}
sl@0
  1429
do_test printf-2.3.9.3 {
sl@0
  1430
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 -99.99999
sl@0
  1431
} {abc: ( -99.99999) :xyz}
sl@0
  1432
do_test printf-2.3.9.4 {
sl@0
  1433
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 -99.99999
sl@0
  1434
} {abc: 10 10 (-100) :xyz}
sl@0
  1435
do_test printf-2.3.9.5 {
sl@0
  1436
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 -99.99999
sl@0
  1437
} {abc: 10 10 (-100.000) :xyz}
sl@0
  1438
do_test printf-2.3.9.6 {
sl@0
  1439
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 -99.99999
sl@0
  1440
} {abc: 10 10 (-000000100) :xyz}
sl@0
  1441
do_test printf-2.3.9.7 {
sl@0
  1442
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 -99.99999
sl@0
  1443
} {abc: 10 10 (-99.9999900000) :xyz}
sl@0
  1444
do_test printf-2.3.9.8 {
sl@0
  1445
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 -99.99999
sl@0
  1446
} {abc: 10 10 (-9.9999990000e+01) :xyz}
sl@0
  1447
do_test printf-2.3.9.9 {
sl@0
  1448
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 -99.99999
sl@0
  1449
} {abc: 10 10 ( -99.99999) :xyz}
sl@0
  1450
do_test printf-2.3.10.1 {
sl@0
  1451
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 3.14e+9
sl@0
  1452
} {abc: (3140000000.0000000000) :xyz}
sl@0
  1453
do_test printf-2.3.10.2 {
sl@0
  1454
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 3.14e+9
sl@0
  1455
} {abc: (3.1400000000e+09) :xyz}
sl@0
  1456
do_test printf-2.3.10.3 {
sl@0
  1457
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 3.14e+9
sl@0
  1458
} {abc: (3140000000) :xyz}
sl@0
  1459
do_test printf-2.3.10.4 {
sl@0
  1460
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 3.14e+9
sl@0
  1461
} {abc: 10 10 (3.14e+09) :xyz}
sl@0
  1462
do_test printf-2.3.10.5 {
sl@0
  1463
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 3.14e+9
sl@0
  1464
} {abc: 10 10 (3.14000e+09) :xyz}
sl@0
  1465
do_test printf-2.3.10.6 {
sl@0
  1466
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 3.14e+9
sl@0
  1467
} {abc: 10 10 (003.14e+09) :xyz}
sl@0
  1468
do_test printf-2.3.10.7 {
sl@0
  1469
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 3.14e+9
sl@0
  1470
} {abc: 10 10 (3140000000.0000000000) :xyz}
sl@0
  1471
do_test printf-2.3.10.8 {
sl@0
  1472
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 3.14e+9
sl@0
  1473
} {abc: 10 10 (3.1400000000e+09) :xyz}
sl@0
  1474
do_test printf-2.3.10.9 {
sl@0
  1475
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 3.14e+9
sl@0
  1476
} {abc: 10 10 (3140000000) :xyz}
sl@0
  1477
do_test printf-2.3.11.2 {
sl@0
  1478
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 -4.72732e+88
sl@0
  1479
} {abc: (-4.7273200000e+88) :xyz}
sl@0
  1480
do_test printf-2.3.11.3 {
sl@0
  1481
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 -4.72732e+88
sl@0
  1482
} {abc: (-4.72732e+88) :xyz}
sl@0
  1483
do_test printf-2.3.11.4 {
sl@0
  1484
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 -4.72732e+88
sl@0
  1485
} {abc: 10 10 (-4.72732e+88) :xyz}
sl@0
  1486
do_test printf-2.3.11.5 {
sl@0
  1487
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 -4.72732e+88
sl@0
  1488
} {abc: 10 10 (-4.72732e+88) :xyz}
sl@0
  1489
do_test printf-2.3.11.6 {
sl@0
  1490
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 -4.72732e+88
sl@0
  1491
} {abc: 10 10 (-4.72732e+88) :xyz}
sl@0
  1492
do_test printf-2.3.11.8 {
sl@0
  1493
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 -4.72732e+88
sl@0
  1494
} {abc: 10 10 (-4.7273200000e+88) :xyz}
sl@0
  1495
do_test printf-2.3.11.9 {
sl@0
  1496
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 -4.72732e+88
sl@0
  1497
} {abc: 10 10 (-4.72732e+88) :xyz}
sl@0
  1498
do_test printf-2.3.12.2 {
sl@0
  1499
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 9.87991e+143
sl@0
  1500
} {abc: (9.8799100000e+143) :xyz}
sl@0
  1501
do_test printf-2.3.12.3 {
sl@0
  1502
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 9.87991e+143
sl@0
  1503
} {abc: (9.87991e+143) :xyz}
sl@0
  1504
do_test printf-2.3.12.4 {
sl@0
  1505
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 9.87991e+143
sl@0
  1506
} {abc: 10 10 (9.87991e+143) :xyz}
sl@0
  1507
do_test printf-2.3.12.5 {
sl@0
  1508
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 9.87991e+143
sl@0
  1509
} {abc: 10 10 (9.87991e+143) :xyz}
sl@0
  1510
do_test printf-2.3.12.6 {
sl@0
  1511
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 9.87991e+143
sl@0
  1512
} {abc: 10 10 (9.87991e+143) :xyz}
sl@0
  1513
do_test printf-2.3.12.8 {
sl@0
  1514
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 9.87991e+143
sl@0
  1515
} {abc: 10 10 (9.8799100000e+143) :xyz}
sl@0
  1516
do_test printf-2.3.12.9 {
sl@0
  1517
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 9.87991e+143
sl@0
  1518
} {abc: 10 10 (9.87991e+143) :xyz}
sl@0
  1519
do_test printf-2.3.13.1 {
sl@0
  1520
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 -6.287291e-9
sl@0
  1521
} {abc: (-0.0000000063) :xyz}
sl@0
  1522
do_test printf-2.3.13.2 {
sl@0
  1523
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 -6.287291e-9
sl@0
  1524
} {abc: (-6.2872910000e-09) :xyz}
sl@0
  1525
do_test printf-2.3.13.3 {
sl@0
  1526
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 -6.287291e-9
sl@0
  1527
} {abc: (-6.287291e-09) :xyz}
sl@0
  1528
do_test printf-2.3.13.4 {
sl@0
  1529
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 -6.287291e-9
sl@0
  1530
} {abc: 10 10 (-6.28729e-09) :xyz}
sl@0
  1531
do_test printf-2.3.13.5 {
sl@0
  1532
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 -6.287291e-9
sl@0
  1533
} {abc: 10 10 (-6.28729e-09) :xyz}
sl@0
  1534
do_test printf-2.3.13.6 {
sl@0
  1535
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 -6.287291e-9
sl@0
  1536
} {abc: 10 10 (-6.28729e-09) :xyz}
sl@0
  1537
do_test printf-2.3.13.7 {
sl@0
  1538
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 -6.287291e-9
sl@0
  1539
} {abc: 10 10 (-0.0000000063) :xyz}
sl@0
  1540
do_test printf-2.3.13.8 {
sl@0
  1541
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 -6.287291e-9
sl@0
  1542
} {abc: 10 10 (-6.2872910000e-09) :xyz}
sl@0
  1543
do_test printf-2.3.13.9 {
sl@0
  1544
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 -6.287291e-9
sl@0
  1545
} {abc: 10 10 (-6.287291e-09) :xyz}
sl@0
  1546
do_test printf-2.3.14.1 {
sl@0
  1547
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 10 3.38826392e-110
sl@0
  1548
} {abc: (0.0000000000) :xyz}
sl@0
  1549
do_test printf-2.3.14.2 {
sl@0
  1550
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 10 3.38826392e-110
sl@0
  1551
} {abc: (3.3882639200e-110) :xyz}
sl@0
  1552
do_test printf-2.3.14.3 {
sl@0
  1553
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 10 3.38826392e-110
sl@0
  1554
} {abc: (3.38826392e-110) :xyz}
sl@0
  1555
do_test printf-2.3.14.4 {
sl@0
  1556
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 10 3.38826392e-110
sl@0
  1557
} {abc: 10 10 (3.38826e-110) :xyz}
sl@0
  1558
do_test printf-2.3.14.5 {
sl@0
  1559
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 10 3.38826392e-110
sl@0
  1560
} {abc: 10 10 (3.38826e-110) :xyz}
sl@0
  1561
do_test printf-2.3.14.6 {
sl@0
  1562
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 10 3.38826392e-110
sl@0
  1563
} {abc: 10 10 (3.38826e-110) :xyz}
sl@0
  1564
do_test printf-2.3.14.7 {
sl@0
  1565
  sqlite3_mprintf_double {abc: %d %d (%10.10f) :xyz} 10 10 3.38826392e-110
sl@0
  1566
} {abc: 10 10 (0.0000000000) :xyz}
sl@0
  1567
do_test printf-2.3.14.8 {
sl@0
  1568
  sqlite3_mprintf_double {abc: %d %d (%10.10e) :xyz} 10 10 3.38826392e-110
sl@0
  1569
} {abc: 10 10 (3.3882639200e-110) :xyz}
sl@0
  1570
do_test printf-2.3.14.9 {
sl@0
  1571
  sqlite3_mprintf_double {abc: %d %d (%10.10g) :xyz} 10 10 3.38826392e-110
sl@0
  1572
} {abc: 10 10 (3.38826392e-110) :xyz}
sl@0
  1573
do_test printf-2.4.1.1 {
sl@0
  1574
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 0.001
sl@0
  1575
} {abc: (   0.00100) :xyz}
sl@0
  1576
do_test printf-2.4.1.2 {
sl@0
  1577
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 0.001
sl@0
  1578
} {abc: (1.00000e-03) :xyz}
sl@0
  1579
do_test printf-2.4.1.3 {
sl@0
  1580
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 0.001
sl@0
  1581
} {abc: (     0.001) :xyz}
sl@0
  1582
do_test printf-2.4.1.4 {
sl@0
  1583
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 0.001
sl@0
  1584
} {abc: 10 5 (0.001) :xyz}
sl@0
  1585
do_test printf-2.4.1.5 {
sl@0
  1586
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 0.001
sl@0
  1587
} {abc: 10 5 (0.00100000) :xyz}
sl@0
  1588
do_test printf-2.4.1.6 {
sl@0
  1589
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 0.001
sl@0
  1590
} {abc: 10 5 (000000.001) :xyz}
sl@0
  1591
do_test printf-2.4.1.7 {
sl@0
  1592
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 0.001
sl@0
  1593
} {abc: 10 5 (   0.00100) :xyz}
sl@0
  1594
do_test printf-2.4.1.8 {
sl@0
  1595
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 0.001
sl@0
  1596
} {abc: 10 5 (1.00000e-03) :xyz}
sl@0
  1597
do_test printf-2.4.1.9 {
sl@0
  1598
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 0.001
sl@0
  1599
} {abc: 10 5 (     0.001) :xyz}
sl@0
  1600
do_test printf-2.4.2.1 {
sl@0
  1601
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 1.0e-20
sl@0
  1602
} {abc: (   0.00000) :xyz}
sl@0
  1603
do_test printf-2.4.2.2 {
sl@0
  1604
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 1.0e-20
sl@0
  1605
} {abc: (1.00000e-20) :xyz}
sl@0
  1606
do_test printf-2.4.2.3 {
sl@0
  1607
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 1.0e-20
sl@0
  1608
} {abc: (     1e-20) :xyz}
sl@0
  1609
do_test printf-2.4.2.4 {
sl@0
  1610
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 1.0e-20
sl@0
  1611
} {abc: 10 5 (1e-20) :xyz}
sl@0
  1612
do_test printf-2.4.2.5 {
sl@0
  1613
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 1.0e-20
sl@0
  1614
} {abc: 10 5 (1.00000e-20) :xyz}
sl@0
  1615
do_test printf-2.4.2.6 {
sl@0
  1616
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 1.0e-20
sl@0
  1617
} {abc: 10 5 (000001e-20) :xyz}
sl@0
  1618
do_test printf-2.4.2.7 {
sl@0
  1619
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 1.0e-20
sl@0
  1620
} {abc: 10 5 (   0.00000) :xyz}
sl@0
  1621
do_test printf-2.4.2.8 {
sl@0
  1622
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 1.0e-20
sl@0
  1623
} {abc: 10 5 (1.00000e-20) :xyz}
sl@0
  1624
do_test printf-2.4.2.9 {
sl@0
  1625
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 1.0e-20
sl@0
  1626
} {abc: 10 5 (     1e-20) :xyz}
sl@0
  1627
do_test printf-2.4.3.1 {
sl@0
  1628
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 1.0
sl@0
  1629
} {abc: (   1.00000) :xyz}
sl@0
  1630
do_test printf-2.4.3.2 {
sl@0
  1631
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 1.0
sl@0
  1632
} {abc: (1.00000e+00) :xyz}
sl@0
  1633
do_test printf-2.4.3.3 {
sl@0
  1634
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 1.0
sl@0
  1635
} {abc: (         1) :xyz}
sl@0
  1636
do_test printf-2.4.3.4 {
sl@0
  1637
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 1.0
sl@0
  1638
} {abc: 10 5 (1) :xyz}
sl@0
  1639
do_test printf-2.4.3.5 {
sl@0
  1640
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 1.0
sl@0
  1641
} {abc: 10 5 (1.00000) :xyz}
sl@0
  1642
do_test printf-2.4.3.6 {
sl@0
  1643
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 1.0
sl@0
  1644
} {abc: 10 5 (0000000001) :xyz}
sl@0
  1645
do_test printf-2.4.3.7 {
sl@0
  1646
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 1.0
sl@0
  1647
} {abc: 10 5 (   1.00000) :xyz}
sl@0
  1648
do_test printf-2.4.3.8 {
sl@0
  1649
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 1.0
sl@0
  1650
} {abc: 10 5 (1.00000e+00) :xyz}
sl@0
  1651
do_test printf-2.4.3.9 {
sl@0
  1652
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 1.0
sl@0
  1653
} {abc: 10 5 (         1) :xyz}
sl@0
  1654
do_test printf-2.4.4.1 {
sl@0
  1655
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 0.0
sl@0
  1656
} {abc: (   0.00000) :xyz}
sl@0
  1657
do_test printf-2.4.4.2 {
sl@0
  1658
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 0.0
sl@0
  1659
} {abc: (0.00000e+00) :xyz}
sl@0
  1660
do_test printf-2.4.4.3 {
sl@0
  1661
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 0.0
sl@0
  1662
} {abc: (         0) :xyz}
sl@0
  1663
do_test printf-2.4.4.4 {
sl@0
  1664
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 0.0
sl@0
  1665
} {abc: 10 5 (0) :xyz}
sl@0
  1666
do_test printf-2.4.4.5 {
sl@0
  1667
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 0.0
sl@0
  1668
} {abc: 10 5 (0.00000) :xyz}
sl@0
  1669
do_test printf-2.4.4.6 {
sl@0
  1670
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 0.0
sl@0
  1671
} {abc: 10 5 (0000000000) :xyz}
sl@0
  1672
do_test printf-2.4.4.7 {
sl@0
  1673
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 0.0
sl@0
  1674
} {abc: 10 5 (   0.00000) :xyz}
sl@0
  1675
do_test printf-2.4.4.8 {
sl@0
  1676
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 0.0
sl@0
  1677
} {abc: 10 5 (0.00000e+00) :xyz}
sl@0
  1678
do_test printf-2.4.4.9 {
sl@0
  1679
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 0.0
sl@0
  1680
} {abc: 10 5 (         0) :xyz}
sl@0
  1681
do_test printf-2.4.5.1 {
sl@0
  1682
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 100.0
sl@0
  1683
} {abc: ( 100.00000) :xyz}
sl@0
  1684
do_test printf-2.4.5.2 {
sl@0
  1685
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 100.0
sl@0
  1686
} {abc: (1.00000e+02) :xyz}
sl@0
  1687
do_test printf-2.4.5.3 {
sl@0
  1688
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 100.0
sl@0
  1689
} {abc: (       100) :xyz}
sl@0
  1690
do_test printf-2.4.5.4 {
sl@0
  1691
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 100.0
sl@0
  1692
} {abc: 10 5 (100) :xyz}
sl@0
  1693
do_test printf-2.4.5.5 {
sl@0
  1694
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 100.0
sl@0
  1695
} {abc: 10 5 (100.000) :xyz}
sl@0
  1696
do_test printf-2.4.5.6 {
sl@0
  1697
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 100.0
sl@0
  1698
} {abc: 10 5 (0000000100) :xyz}
sl@0
  1699
do_test printf-2.4.5.7 {
sl@0
  1700
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 100.0
sl@0
  1701
} {abc: 10 5 ( 100.00000) :xyz}
sl@0
  1702
do_test printf-2.4.5.8 {
sl@0
  1703
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 100.0
sl@0
  1704
} {abc: 10 5 (1.00000e+02) :xyz}
sl@0
  1705
do_test printf-2.4.5.9 {
sl@0
  1706
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 100.0
sl@0
  1707
} {abc: 10 5 (       100) :xyz}
sl@0
  1708
do_test printf-2.4.6.1 {
sl@0
  1709
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 9.99999
sl@0
  1710
} {abc: (   9.99999) :xyz}
sl@0
  1711
do_test printf-2.4.6.2 {
sl@0
  1712
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 9.99999
sl@0
  1713
} {abc: (9.99999e+00) :xyz}
sl@0
  1714
do_test printf-2.4.6.3 {
sl@0
  1715
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 9.99999
sl@0
  1716
} {abc: (        10) :xyz}
sl@0
  1717
do_test printf-2.4.6.4 {
sl@0
  1718
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 9.99999
sl@0
  1719
} {abc: 10 5 (9.99999) :xyz}
sl@0
  1720
do_test printf-2.4.6.5 {
sl@0
  1721
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 9.99999
sl@0
  1722
} {abc: 10 5 (9.99999) :xyz}
sl@0
  1723
do_test printf-2.4.6.6 {
sl@0
  1724
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 9.99999
sl@0
  1725
} {abc: 10 5 (0009.99999) :xyz}
sl@0
  1726
do_test printf-2.4.6.7 {
sl@0
  1727
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 9.99999
sl@0
  1728
} {abc: 10 5 (   9.99999) :xyz}
sl@0
  1729
do_test printf-2.4.6.8 {
sl@0
  1730
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 9.99999
sl@0
  1731
} {abc: 10 5 (9.99999e+00) :xyz}
sl@0
  1732
do_test printf-2.4.6.9 {
sl@0
  1733
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 9.99999
sl@0
  1734
} {abc: 10 5 (        10) :xyz}
sl@0
  1735
do_test printf-2.4.7.1 {
sl@0
  1736
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 -0.00543
sl@0
  1737
} {abc: (  -0.00543) :xyz}
sl@0
  1738
do_test printf-2.4.7.2 {
sl@0
  1739
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 -0.00543
sl@0
  1740
} {abc: (-5.43000e-03) :xyz}
sl@0
  1741
do_test printf-2.4.7.3 {
sl@0
  1742
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 -0.00543
sl@0
  1743
} {abc: (  -0.00543) :xyz}
sl@0
  1744
do_test printf-2.4.7.4 {
sl@0
  1745
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 -0.00543
sl@0
  1746
} {abc: 10 5 (-0.00543) :xyz}
sl@0
  1747
do_test printf-2.4.7.5 {
sl@0
  1748
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 -0.00543
sl@0
  1749
} {abc: 10 5 (-0.00543000) :xyz}
sl@0
  1750
do_test printf-2.4.7.6 {
sl@0
  1751
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 -0.00543
sl@0
  1752
} {abc: 10 5 (-000.00543) :xyz}
sl@0
  1753
do_test printf-2.4.7.7 {
sl@0
  1754
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 -0.00543
sl@0
  1755
} {abc: 10 5 (  -0.00543) :xyz}
sl@0
  1756
do_test printf-2.4.7.8 {
sl@0
  1757
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 -0.00543
sl@0
  1758
} {abc: 10 5 (-5.43000e-03) :xyz}
sl@0
  1759
do_test printf-2.4.7.9 {
sl@0
  1760
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 -0.00543
sl@0
  1761
} {abc: 10 5 (  -0.00543) :xyz}
sl@0
  1762
do_test printf-2.4.8.1 {
sl@0
  1763
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 -1.0
sl@0
  1764
} {abc: (  -1.00000) :xyz}
sl@0
  1765
do_test printf-2.4.8.2 {
sl@0
  1766
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 -1.0
sl@0
  1767
} {abc: (-1.00000e+00) :xyz}
sl@0
  1768
do_test printf-2.4.8.3 {
sl@0
  1769
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 -1.0
sl@0
  1770
} {abc: (        -1) :xyz}
sl@0
  1771
do_test printf-2.4.8.4 {
sl@0
  1772
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 -1.0
sl@0
  1773
} {abc: 10 5 (-1) :xyz}
sl@0
  1774
do_test printf-2.4.8.5 {
sl@0
  1775
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 -1.0
sl@0
  1776
} {abc: 10 5 (-1.00000) :xyz}
sl@0
  1777
do_test printf-2.4.8.6 {
sl@0
  1778
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 -1.0
sl@0
  1779
} {abc: 10 5 (-000000001) :xyz}
sl@0
  1780
do_test printf-2.4.8.7 {
sl@0
  1781
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 -1.0
sl@0
  1782
} {abc: 10 5 (  -1.00000) :xyz}
sl@0
  1783
do_test printf-2.4.8.8 {
sl@0
  1784
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 -1.0
sl@0
  1785
} {abc: 10 5 (-1.00000e+00) :xyz}
sl@0
  1786
do_test printf-2.4.8.9 {
sl@0
  1787
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 -1.0
sl@0
  1788
} {abc: 10 5 (        -1) :xyz}
sl@0
  1789
do_test printf-2.4.9.1 {
sl@0
  1790
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 -99.99999
sl@0
  1791
} {abc: ( -99.99999) :xyz}
sl@0
  1792
do_test printf-2.4.9.2 {
sl@0
  1793
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 -99.99999
sl@0
  1794
} {abc: (-1.00000e+02) :xyz}
sl@0
  1795
do_test printf-2.4.9.3 {
sl@0
  1796
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 -99.99999
sl@0
  1797
} {abc: (      -100) :xyz}
sl@0
  1798
do_test printf-2.4.9.4 {
sl@0
  1799
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 -99.99999
sl@0
  1800
} {abc: 10 5 (-100) :xyz}
sl@0
  1801
do_test printf-2.4.9.5 {
sl@0
  1802
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 -99.99999
sl@0
  1803
} {abc: 10 5 (-100.000) :xyz}
sl@0
  1804
do_test printf-2.4.9.6 {
sl@0
  1805
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 -99.99999
sl@0
  1806
} {abc: 10 5 (-000000100) :xyz}
sl@0
  1807
do_test printf-2.4.9.7 {
sl@0
  1808
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 -99.99999
sl@0
  1809
} {abc: 10 5 ( -99.99999) :xyz}
sl@0
  1810
do_test printf-2.4.9.8 {
sl@0
  1811
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 -99.99999
sl@0
  1812
} {abc: 10 5 (-1.00000e+02) :xyz}
sl@0
  1813
do_test printf-2.4.9.9 {
sl@0
  1814
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 -99.99999
sl@0
  1815
} {abc: 10 5 (      -100) :xyz}
sl@0
  1816
do_test printf-2.4.10.1 {
sl@0
  1817
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 3.14e+9
sl@0
  1818
} {abc: (3140000000.00000) :xyz}
sl@0
  1819
do_test printf-2.4.10.2 {
sl@0
  1820
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 3.14e+9
sl@0
  1821
} {abc: (3.14000e+09) :xyz}
sl@0
  1822
do_test printf-2.4.10.3 {
sl@0
  1823
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 3.14e+9
sl@0
  1824
} {abc: (  3.14e+09) :xyz}
sl@0
  1825
do_test printf-2.4.10.4 {
sl@0
  1826
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 3.14e+9
sl@0
  1827
} {abc: 10 5 (3.14e+09) :xyz}
sl@0
  1828
do_test printf-2.4.10.5 {
sl@0
  1829
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 3.14e+9
sl@0
  1830
} {abc: 10 5 (3.14000e+09) :xyz}
sl@0
  1831
do_test printf-2.4.10.6 {
sl@0
  1832
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 3.14e+9
sl@0
  1833
} {abc: 10 5 (003.14e+09) :xyz}
sl@0
  1834
do_test printf-2.4.10.7 {
sl@0
  1835
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 3.14e+9
sl@0
  1836
} {abc: 10 5 (3140000000.00000) :xyz}
sl@0
  1837
do_test printf-2.4.10.8 {
sl@0
  1838
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 3.14e+9
sl@0
  1839
} {abc: 10 5 (3.14000e+09) :xyz}
sl@0
  1840
do_test printf-2.4.10.9 {
sl@0
  1841
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 3.14e+9
sl@0
  1842
} {abc: 10 5 (  3.14e+09) :xyz}
sl@0
  1843
do_test printf-2.4.11.2 {
sl@0
  1844
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 -4.72732e+88
sl@0
  1845
} {abc: (-4.72732e+88) :xyz}
sl@0
  1846
do_test printf-2.4.11.3 {
sl@0
  1847
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 -4.72732e+88
sl@0
  1848
} {abc: (-4.7273e+88) :xyz}
sl@0
  1849
do_test printf-2.4.11.4 {
sl@0
  1850
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 -4.72732e+88
sl@0
  1851
} {abc: 10 5 (-4.72732e+88) :xyz}
sl@0
  1852
do_test printf-2.4.11.5 {
sl@0
  1853
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 -4.72732e+88
sl@0
  1854
} {abc: 10 5 (-4.72732e+88) :xyz}
sl@0
  1855
do_test printf-2.4.11.6 {
sl@0
  1856
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 -4.72732e+88
sl@0
  1857
} {abc: 10 5 (-4.72732e+88) :xyz}
sl@0
  1858
do_test printf-2.4.11.8 {
sl@0
  1859
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 -4.72732e+88
sl@0
  1860
} {abc: 10 5 (-4.72732e+88) :xyz}
sl@0
  1861
do_test printf-2.4.11.9 {
sl@0
  1862
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 -4.72732e+88
sl@0
  1863
} {abc: 10 5 (-4.7273e+88) :xyz}
sl@0
  1864
do_test printf-2.4.12.2 {
sl@0
  1865
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 9.87991e+143
sl@0
  1866
} {abc: (9.87991e+143) :xyz}
sl@0
  1867
do_test printf-2.4.12.3 {
sl@0
  1868
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 9.87991e+143
sl@0
  1869
} {abc: (9.8799e+143) :xyz}
sl@0
  1870
do_test printf-2.4.12.4 {
sl@0
  1871
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 9.87991e+143
sl@0
  1872
} {abc: 10 5 (9.87991e+143) :xyz}
sl@0
  1873
do_test printf-2.4.12.5 {
sl@0
  1874
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 9.87991e+143
sl@0
  1875
} {abc: 10 5 (9.87991e+143) :xyz}
sl@0
  1876
do_test printf-2.4.12.6 {
sl@0
  1877
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 9.87991e+143
sl@0
  1878
} {abc: 10 5 (9.87991e+143) :xyz}
sl@0
  1879
do_test printf-2.4.12.8 {
sl@0
  1880
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 9.87991e+143
sl@0
  1881
} {abc: 10 5 (9.87991e+143) :xyz}
sl@0
  1882
do_test printf-2.4.12.9 {
sl@0
  1883
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 9.87991e+143
sl@0
  1884
} {abc: 10 5 (9.8799e+143) :xyz}
sl@0
  1885
do_test printf-2.4.13.1 {
sl@0
  1886
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 -6.287291e-9
sl@0
  1887
} {abc: (  -0.00000) :xyz}
sl@0
  1888
do_test printf-2.4.13.2 {
sl@0
  1889
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 -6.287291e-9
sl@0
  1890
} {abc: (-6.28729e-09) :xyz}
sl@0
  1891
do_test printf-2.4.13.3 {
sl@0
  1892
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 -6.287291e-9
sl@0
  1893
} {abc: (-6.2873e-09) :xyz}
sl@0
  1894
do_test printf-2.4.13.4 {
sl@0
  1895
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 -6.287291e-9
sl@0
  1896
} {abc: 10 5 (-6.28729e-09) :xyz}
sl@0
  1897
do_test printf-2.4.13.5 {
sl@0
  1898
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 -6.287291e-9
sl@0
  1899
} {abc: 10 5 (-6.28729e-09) :xyz}
sl@0
  1900
do_test printf-2.4.13.6 {
sl@0
  1901
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 -6.287291e-9
sl@0
  1902
} {abc: 10 5 (-6.28729e-09) :xyz}
sl@0
  1903
do_test printf-2.4.13.7 {
sl@0
  1904
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 -6.287291e-9
sl@0
  1905
} {abc: 10 5 (  -0.00000) :xyz}
sl@0
  1906
do_test printf-2.4.13.8 {
sl@0
  1907
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 -6.287291e-9
sl@0
  1908
} {abc: 10 5 (-6.28729e-09) :xyz}
sl@0
  1909
do_test printf-2.4.13.9 {
sl@0
  1910
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 -6.287291e-9
sl@0
  1911
} {abc: 10 5 (-6.2873e-09) :xyz}
sl@0
  1912
do_test printf-2.4.14.1 {
sl@0
  1913
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 10 5 3.38826392e-110
sl@0
  1914
} {abc: (   0.00000) :xyz}
sl@0
  1915
do_test printf-2.4.14.2 {
sl@0
  1916
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 10 5 3.38826392e-110
sl@0
  1917
} {abc: (3.38826e-110) :xyz}
sl@0
  1918
do_test printf-2.4.14.3 {
sl@0
  1919
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 10 5 3.38826392e-110
sl@0
  1920
} {abc: (3.3883e-110) :xyz}
sl@0
  1921
do_test printf-2.4.14.4 {
sl@0
  1922
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 10 5 3.38826392e-110
sl@0
  1923
} {abc: 10 5 (3.38826e-110) :xyz}
sl@0
  1924
do_test printf-2.4.14.5 {
sl@0
  1925
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 10 5 3.38826392e-110
sl@0
  1926
} {abc: 10 5 (3.38826e-110) :xyz}
sl@0
  1927
do_test printf-2.4.14.6 {
sl@0
  1928
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 10 5 3.38826392e-110
sl@0
  1929
} {abc: 10 5 (3.38826e-110) :xyz}
sl@0
  1930
do_test printf-2.4.14.7 {
sl@0
  1931
  sqlite3_mprintf_double {abc: %d %d (%10.5f) :xyz} 10 5 3.38826392e-110
sl@0
  1932
} {abc: 10 5 (   0.00000) :xyz}
sl@0
  1933
do_test printf-2.4.14.8 {
sl@0
  1934
  sqlite3_mprintf_double {abc: %d %d (%10.5e) :xyz} 10 5 3.38826392e-110
sl@0
  1935
} {abc: 10 5 (3.38826e-110) :xyz}
sl@0
  1936
do_test printf-2.4.14.9 {
sl@0
  1937
  sqlite3_mprintf_double {abc: %d %d (%10.5g) :xyz} 10 5 3.38826392e-110
sl@0
  1938
} {abc: 10 5 (3.3883e-110) :xyz}
sl@0
  1939
do_test printf-2.5.1.1 {
sl@0
  1940
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 0.001
sl@0
  1941
} {abc: (0.00) :xyz}
sl@0
  1942
do_test printf-2.5.1.2 {
sl@0
  1943
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 0.001
sl@0
  1944
} {abc: (1.00e-03) :xyz}
sl@0
  1945
do_test printf-2.5.1.3 {
sl@0
  1946
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 0.001
sl@0
  1947
} {abc: (0.001) :xyz}
sl@0
  1948
do_test printf-2.5.1.4 {
sl@0
  1949
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 0.001
sl@0
  1950
} {abc: 2 2 (0.001) :xyz}
sl@0
  1951
do_test printf-2.5.1.5 {
sl@0
  1952
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 0.001
sl@0
  1953
} {abc: 2 2 (0.00100000) :xyz}
sl@0
  1954
do_test printf-2.5.1.6 {
sl@0
  1955
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 0.001
sl@0
  1956
} {abc: 2 2 (000000.001) :xyz}
sl@0
  1957
do_test printf-2.5.1.7 {
sl@0
  1958
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 0.001
sl@0
  1959
} {abc: 2 2 (0.00) :xyz}
sl@0
  1960
do_test printf-2.5.1.8 {
sl@0
  1961
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 0.001
sl@0
  1962
} {abc: 2 2 (1.00e-03) :xyz}
sl@0
  1963
do_test printf-2.5.1.9 {
sl@0
  1964
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 0.001
sl@0
  1965
} {abc: 2 2 (0.001) :xyz}
sl@0
  1966
do_test printf-2.5.2.1 {
sl@0
  1967
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 1.0e-20
sl@0
  1968
} {abc: (0.00) :xyz}
sl@0
  1969
do_test printf-2.5.2.2 {
sl@0
  1970
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 1.0e-20
sl@0
  1971
} {abc: (1.00e-20) :xyz}
sl@0
  1972
do_test printf-2.5.2.3 {
sl@0
  1973
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 1.0e-20
sl@0
  1974
} {abc: (1e-20) :xyz}
sl@0
  1975
do_test printf-2.5.2.4 {
sl@0
  1976
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 1.0e-20
sl@0
  1977
} {abc: 2 2 (1e-20) :xyz}
sl@0
  1978
do_test printf-2.5.2.5 {
sl@0
  1979
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 1.0e-20
sl@0
  1980
} {abc: 2 2 (1.00000e-20) :xyz}
sl@0
  1981
do_test printf-2.5.2.6 {
sl@0
  1982
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 1.0e-20
sl@0
  1983
} {abc: 2 2 (000001e-20) :xyz}
sl@0
  1984
do_test printf-2.5.2.7 {
sl@0
  1985
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 1.0e-20
sl@0
  1986
} {abc: 2 2 (0.00) :xyz}
sl@0
  1987
do_test printf-2.5.2.8 {
sl@0
  1988
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 1.0e-20
sl@0
  1989
} {abc: 2 2 (1.00e-20) :xyz}
sl@0
  1990
do_test printf-2.5.2.9 {
sl@0
  1991
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 1.0e-20
sl@0
  1992
} {abc: 2 2 (1e-20) :xyz}
sl@0
  1993
do_test printf-2.5.3.1 {
sl@0
  1994
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 1.0
sl@0
  1995
} {abc: (1.00) :xyz}
sl@0
  1996
do_test printf-2.5.3.2 {
sl@0
  1997
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 1.0
sl@0
  1998
} {abc: (1.00e+00) :xyz}
sl@0
  1999
do_test printf-2.5.3.3 {
sl@0
  2000
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 1.0
sl@0
  2001
} {abc: ( 1) :xyz}
sl@0
  2002
do_test printf-2.5.3.4 {
sl@0
  2003
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 1.0
sl@0
  2004
} {abc: 2 2 (1) :xyz}
sl@0
  2005
do_test printf-2.5.3.5 {
sl@0
  2006
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 1.0
sl@0
  2007
} {abc: 2 2 (1.00000) :xyz}
sl@0
  2008
do_test printf-2.5.3.6 {
sl@0
  2009
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 1.0
sl@0
  2010
} {abc: 2 2 (0000000001) :xyz}
sl@0
  2011
do_test printf-2.5.3.7 {
sl@0
  2012
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 1.0
sl@0
  2013
} {abc: 2 2 (1.00) :xyz}
sl@0
  2014
do_test printf-2.5.3.8 {
sl@0
  2015
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 1.0
sl@0
  2016
} {abc: 2 2 (1.00e+00) :xyz}
sl@0
  2017
do_test printf-2.5.3.9 {
sl@0
  2018
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 1.0
sl@0
  2019
} {abc: 2 2 ( 1) :xyz}
sl@0
  2020
do_test printf-2.5.4.1 {
sl@0
  2021
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 0.0
sl@0
  2022
} {abc: (0.00) :xyz}
sl@0
  2023
do_test printf-2.5.4.2 {
sl@0
  2024
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 0.0
sl@0
  2025
} {abc: (0.00e+00) :xyz}
sl@0
  2026
do_test printf-2.5.4.3 {
sl@0
  2027
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 0.0
sl@0
  2028
} {abc: ( 0) :xyz}
sl@0
  2029
do_test printf-2.5.4.4 {
sl@0
  2030
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 0.0
sl@0
  2031
} {abc: 2 2 (0) :xyz}
sl@0
  2032
do_test printf-2.5.4.5 {
sl@0
  2033
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 0.0
sl@0
  2034
} {abc: 2 2 (0.00000) :xyz}
sl@0
  2035
do_test printf-2.5.4.6 {
sl@0
  2036
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 0.0
sl@0
  2037
} {abc: 2 2 (0000000000) :xyz}
sl@0
  2038
do_test printf-2.5.4.7 {
sl@0
  2039
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 0.0
sl@0
  2040
} {abc: 2 2 (0.00) :xyz}
sl@0
  2041
do_test printf-2.5.4.8 {
sl@0
  2042
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 0.0
sl@0
  2043
} {abc: 2 2 (0.00e+00) :xyz}
sl@0
  2044
do_test printf-2.5.4.9 {
sl@0
  2045
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 0.0
sl@0
  2046
} {abc: 2 2 ( 0) :xyz}
sl@0
  2047
do_test printf-2.5.5.1 {
sl@0
  2048
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 100.0
sl@0
  2049
} {abc: (100.00) :xyz}
sl@0
  2050
do_test printf-2.5.5.2 {
sl@0
  2051
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 100.0
sl@0
  2052
} {abc: (1.00e+02) :xyz}
sl@0
  2053
do_test printf-2.5.5.3 {
sl@0
  2054
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 100.0
sl@0
  2055
} {abc: (1e+02) :xyz}
sl@0
  2056
do_test printf-2.5.5.4 {
sl@0
  2057
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 100.0
sl@0
  2058
} {abc: 2 2 (100) :xyz}
sl@0
  2059
do_test printf-2.5.5.5 {
sl@0
  2060
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 100.0
sl@0
  2061
} {abc: 2 2 (100.000) :xyz}
sl@0
  2062
do_test printf-2.5.5.6 {
sl@0
  2063
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 100.0
sl@0
  2064
} {abc: 2 2 (0000000100) :xyz}
sl@0
  2065
do_test printf-2.5.5.7 {
sl@0
  2066
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 100.0
sl@0
  2067
} {abc: 2 2 (100.00) :xyz}
sl@0
  2068
do_test printf-2.5.5.8 {
sl@0
  2069
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 100.0
sl@0
  2070
} {abc: 2 2 (1.00e+02) :xyz}
sl@0
  2071
do_test printf-2.5.5.9 {
sl@0
  2072
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 100.0
sl@0
  2073
} {abc: 2 2 (1e+02) :xyz}
sl@0
  2074
do_test printf-2.5.6.1 {
sl@0
  2075
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 9.99999
sl@0
  2076
} {abc: (10.00) :xyz}
sl@0
  2077
do_test printf-2.5.6.2 {
sl@0
  2078
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 9.99999
sl@0
  2079
} {abc: (1.00e+01) :xyz}
sl@0
  2080
do_test printf-2.5.6.3 {
sl@0
  2081
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 9.99999
sl@0
  2082
} {abc: (10) :xyz}
sl@0
  2083
do_test printf-2.5.6.4 {
sl@0
  2084
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 9.99999
sl@0
  2085
} {abc: 2 2 (9.99999) :xyz}
sl@0
  2086
do_test printf-2.5.6.5 {
sl@0
  2087
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 9.99999
sl@0
  2088
} {abc: 2 2 (9.99999) :xyz}
sl@0
  2089
do_test printf-2.5.6.6 {
sl@0
  2090
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 9.99999
sl@0
  2091
} {abc: 2 2 (0009.99999) :xyz}
sl@0
  2092
do_test printf-2.5.6.7 {
sl@0
  2093
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 9.99999
sl@0
  2094
} {abc: 2 2 (10.00) :xyz}
sl@0
  2095
do_test printf-2.5.6.8 {
sl@0
  2096
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 9.99999
sl@0
  2097
} {abc: 2 2 (1.00e+01) :xyz}
sl@0
  2098
do_test printf-2.5.6.9 {
sl@0
  2099
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 9.99999
sl@0
  2100
} {abc: 2 2 (10) :xyz}
sl@0
  2101
do_test printf-2.5.7.1 {
sl@0
  2102
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 -0.00543
sl@0
  2103
} {abc: (-0.01) :xyz}
sl@0
  2104
do_test printf-2.5.7.2 {
sl@0
  2105
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 -0.00543
sl@0
  2106
} {abc: (-5.43e-03) :xyz}
sl@0
  2107
do_test printf-2.5.7.3 {
sl@0
  2108
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 -0.00543
sl@0
  2109
} {abc: (-0.0054) :xyz}
sl@0
  2110
do_test printf-2.5.7.4 {
sl@0
  2111
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 -0.00543
sl@0
  2112
} {abc: 2 2 (-0.00543) :xyz}
sl@0
  2113
do_test printf-2.5.7.5 {
sl@0
  2114
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 -0.00543
sl@0
  2115
} {abc: 2 2 (-0.00543000) :xyz}
sl@0
  2116
do_test printf-2.5.7.6 {
sl@0
  2117
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 -0.00543
sl@0
  2118
} {abc: 2 2 (-000.00543) :xyz}
sl@0
  2119
do_test printf-2.5.7.7 {
sl@0
  2120
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 -0.00543
sl@0
  2121
} {abc: 2 2 (-0.01) :xyz}
sl@0
  2122
do_test printf-2.5.7.8 {
sl@0
  2123
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 -0.00543
sl@0
  2124
} {abc: 2 2 (-5.43e-03) :xyz}
sl@0
  2125
do_test printf-2.5.7.9 {
sl@0
  2126
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 -0.00543
sl@0
  2127
} {abc: 2 2 (-0.0054) :xyz}
sl@0
  2128
do_test printf-2.5.8.1 {
sl@0
  2129
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 -1.0
sl@0
  2130
} {abc: (-1.00) :xyz}
sl@0
  2131
do_test printf-2.5.8.2 {
sl@0
  2132
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 -1.0
sl@0
  2133
} {abc: (-1.00e+00) :xyz}
sl@0
  2134
do_test printf-2.5.8.3 {
sl@0
  2135
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 -1.0
sl@0
  2136
} {abc: (-1) :xyz}
sl@0
  2137
do_test printf-2.5.8.4 {
sl@0
  2138
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 -1.0
sl@0
  2139
} {abc: 2 2 (-1) :xyz}
sl@0
  2140
do_test printf-2.5.8.5 {
sl@0
  2141
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 -1.0
sl@0
  2142
} {abc: 2 2 (-1.00000) :xyz}
sl@0
  2143
do_test printf-2.5.8.6 {
sl@0
  2144
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 -1.0
sl@0
  2145
} {abc: 2 2 (-000000001) :xyz}
sl@0
  2146
do_test printf-2.5.8.7 {
sl@0
  2147
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 -1.0
sl@0
  2148
} {abc: 2 2 (-1.00) :xyz}
sl@0
  2149
do_test printf-2.5.8.8 {
sl@0
  2150
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 -1.0
sl@0
  2151
} {abc: 2 2 (-1.00e+00) :xyz}
sl@0
  2152
do_test printf-2.5.8.9 {
sl@0
  2153
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 -1.0
sl@0
  2154
} {abc: 2 2 (-1) :xyz}
sl@0
  2155
do_test printf-2.5.9.1 {
sl@0
  2156
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 -99.99999
sl@0
  2157
} {abc: (-100.00) :xyz}
sl@0
  2158
do_test printf-2.5.9.2 {
sl@0
  2159
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 -99.99999
sl@0
  2160
} {abc: (-1.00e+02) :xyz}
sl@0
  2161
do_test printf-2.5.9.3 {
sl@0
  2162
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 -99.99999
sl@0
  2163
} {abc: (-1e+02) :xyz}
sl@0
  2164
do_test printf-2.5.9.4 {
sl@0
  2165
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 -99.99999
sl@0
  2166
} {abc: 2 2 (-100) :xyz}
sl@0
  2167
do_test printf-2.5.9.5 {
sl@0
  2168
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 -99.99999
sl@0
  2169
} {abc: 2 2 (-100.000) :xyz}
sl@0
  2170
do_test printf-2.5.9.6 {
sl@0
  2171
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 -99.99999
sl@0
  2172
} {abc: 2 2 (-000000100) :xyz}
sl@0
  2173
do_test printf-2.5.9.7 {
sl@0
  2174
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 -99.99999
sl@0
  2175
} {abc: 2 2 (-100.00) :xyz}
sl@0
  2176
do_test printf-2.5.9.8 {
sl@0
  2177
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 -99.99999
sl@0
  2178
} {abc: 2 2 (-1.00e+02) :xyz}
sl@0
  2179
do_test printf-2.5.9.9 {
sl@0
  2180
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 -99.99999
sl@0
  2181
} {abc: 2 2 (-1e+02) :xyz}
sl@0
  2182
do_test printf-2.5.10.1 {
sl@0
  2183
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 3.14e+9
sl@0
  2184
} {abc: (3140000000.00) :xyz}
sl@0
  2185
do_test printf-2.5.10.2 {
sl@0
  2186
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 3.14e+9
sl@0
  2187
} {abc: (3.14e+09) :xyz}
sl@0
  2188
do_test printf-2.5.10.3 {
sl@0
  2189
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 3.14e+9
sl@0
  2190
} {abc: (3.1e+09) :xyz}
sl@0
  2191
do_test printf-2.5.10.4 {
sl@0
  2192
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 3.14e+9
sl@0
  2193
} {abc: 2 2 (3.14e+09) :xyz}
sl@0
  2194
do_test printf-2.5.10.5 {
sl@0
  2195
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 3.14e+9
sl@0
  2196
} {abc: 2 2 (3.14000e+09) :xyz}
sl@0
  2197
do_test printf-2.5.10.6 {
sl@0
  2198
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 3.14e+9
sl@0
  2199
} {abc: 2 2 (003.14e+09) :xyz}
sl@0
  2200
do_test printf-2.5.10.7 {
sl@0
  2201
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 3.14e+9
sl@0
  2202
} {abc: 2 2 (3140000000.00) :xyz}
sl@0
  2203
do_test printf-2.5.10.8 {
sl@0
  2204
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 3.14e+9
sl@0
  2205
} {abc: 2 2 (3.14e+09) :xyz}
sl@0
  2206
do_test printf-2.5.10.9 {
sl@0
  2207
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 3.14e+9
sl@0
  2208
} {abc: 2 2 (3.1e+09) :xyz}
sl@0
  2209
do_test printf-2.5.11.2 {
sl@0
  2210
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 -4.72732e+88
sl@0
  2211
} {abc: (-4.73e+88) :xyz}
sl@0
  2212
do_test printf-2.5.11.3 {
sl@0
  2213
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 -4.72732e+88
sl@0
  2214
} {abc: (-4.7e+88) :xyz}
sl@0
  2215
do_test printf-2.5.11.4 {
sl@0
  2216
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 -4.72732e+88
sl@0
  2217
} {abc: 2 2 (-4.72732e+88) :xyz}
sl@0
  2218
do_test printf-2.5.11.5 {
sl@0
  2219
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 -4.72732e+88
sl@0
  2220
} {abc: 2 2 (-4.72732e+88) :xyz}
sl@0
  2221
do_test printf-2.5.11.6 {
sl@0
  2222
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 -4.72732e+88
sl@0
  2223
} {abc: 2 2 (-4.72732e+88) :xyz}
sl@0
  2224
do_test printf-2.5.11.8 {
sl@0
  2225
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 -4.72732e+88
sl@0
  2226
} {abc: 2 2 (-4.73e+88) :xyz}
sl@0
  2227
do_test printf-2.5.11.9 {
sl@0
  2228
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 -4.72732e+88
sl@0
  2229
} {abc: 2 2 (-4.7e+88) :xyz}
sl@0
  2230
do_test printf-2.5.12.2 {
sl@0
  2231
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 9.87991e+143
sl@0
  2232
} {abc: (9.88e+143) :xyz}
sl@0
  2233
do_test printf-2.5.12.3 {
sl@0
  2234
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 9.87991e+143
sl@0
  2235
} {abc: (9.9e+143) :xyz}
sl@0
  2236
do_test printf-2.5.12.4 {
sl@0
  2237
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 9.87991e+143
sl@0
  2238
} {abc: 2 2 (9.87991e+143) :xyz}
sl@0
  2239
do_test printf-2.5.12.5 {
sl@0
  2240
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 9.87991e+143
sl@0
  2241
} {abc: 2 2 (9.87991e+143) :xyz}
sl@0
  2242
do_test printf-2.5.12.6 {
sl@0
  2243
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 9.87991e+143
sl@0
  2244
} {abc: 2 2 (9.87991e+143) :xyz}
sl@0
  2245
do_test printf-2.5.12.8 {
sl@0
  2246
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 9.87991e+143
sl@0
  2247
} {abc: 2 2 (9.88e+143) :xyz}
sl@0
  2248
do_test printf-2.5.12.9 {
sl@0
  2249
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 9.87991e+143
sl@0
  2250
} {abc: 2 2 (9.9e+143) :xyz}
sl@0
  2251
do_test printf-2.5.13.1 {
sl@0
  2252
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 -6.287291e-9
sl@0
  2253
} {abc: (-0.00) :xyz}
sl@0
  2254
do_test printf-2.5.13.2 {
sl@0
  2255
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 -6.287291e-9
sl@0
  2256
} {abc: (-6.29e-09) :xyz}
sl@0
  2257
do_test printf-2.5.13.3 {
sl@0
  2258
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 -6.287291e-9
sl@0
  2259
} {abc: (-6.3e-09) :xyz}
sl@0
  2260
do_test printf-2.5.13.4 {
sl@0
  2261
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 -6.287291e-9
sl@0
  2262
} {abc: 2 2 (-6.28729e-09) :xyz}
sl@0
  2263
do_test printf-2.5.13.5 {
sl@0
  2264
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 -6.287291e-9
sl@0
  2265
} {abc: 2 2 (-6.28729e-09) :xyz}
sl@0
  2266
do_test printf-2.5.13.6 {
sl@0
  2267
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 -6.287291e-9
sl@0
  2268
} {abc: 2 2 (-6.28729e-09) :xyz}
sl@0
  2269
do_test printf-2.5.13.7 {
sl@0
  2270
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 -6.287291e-9
sl@0
  2271
} {abc: 2 2 (-0.00) :xyz}
sl@0
  2272
do_test printf-2.5.13.8 {
sl@0
  2273
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 -6.287291e-9
sl@0
  2274
} {abc: 2 2 (-6.29e-09) :xyz}
sl@0
  2275
do_test printf-2.5.13.9 {
sl@0
  2276
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 -6.287291e-9
sl@0
  2277
} {abc: 2 2 (-6.3e-09) :xyz}
sl@0
  2278
do_test printf-2.5.14.1 {
sl@0
  2279
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 2 3.38826392e-110
sl@0
  2280
} {abc: (0.00) :xyz}
sl@0
  2281
do_test printf-2.5.14.2 {
sl@0
  2282
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 2 3.38826392e-110
sl@0
  2283
} {abc: (3.39e-110) :xyz}
sl@0
  2284
do_test printf-2.5.14.3 {
sl@0
  2285
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 2 3.38826392e-110
sl@0
  2286
} {abc: (3.4e-110) :xyz}
sl@0
  2287
do_test printf-2.5.14.4 {
sl@0
  2288
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 2 3.38826392e-110
sl@0
  2289
} {abc: 2 2 (3.38826e-110) :xyz}
sl@0
  2290
do_test printf-2.5.14.5 {
sl@0
  2291
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 2 3.38826392e-110
sl@0
  2292
} {abc: 2 2 (3.38826e-110) :xyz}
sl@0
  2293
do_test printf-2.5.14.6 {
sl@0
  2294
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 2 3.38826392e-110
sl@0
  2295
} {abc: 2 2 (3.38826e-110) :xyz}
sl@0
  2296
do_test printf-2.5.14.7 {
sl@0
  2297
  sqlite3_mprintf_double {abc: %d %d (%2.2f) :xyz} 2 2 3.38826392e-110
sl@0
  2298
} {abc: 2 2 (0.00) :xyz}
sl@0
  2299
do_test printf-2.5.14.8 {
sl@0
  2300
  sqlite3_mprintf_double {abc: %d %d (%2.2e) :xyz} 2 2 3.38826392e-110
sl@0
  2301
} {abc: 2 2 (3.39e-110) :xyz}
sl@0
  2302
do_test printf-2.5.14.9 {
sl@0
  2303
  sqlite3_mprintf_double {abc: %d %d (%2.2g) :xyz} 2 2 3.38826392e-110
sl@0
  2304
} {abc: 2 2 (3.4e-110) :xyz}
sl@0
  2305
do_test printf-2.6.1.1 {
sl@0
  2306
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 0.001
sl@0
  2307
} {abc: (0.001) :xyz}
sl@0
  2308
do_test printf-2.6.1.2 {
sl@0
  2309
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 0.001
sl@0
  2310
} {abc: (1.000e-03) :xyz}
sl@0
  2311
do_test printf-2.6.1.3 {
sl@0
  2312
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 0.001
sl@0
  2313
} {abc: (0.001) :xyz}
sl@0
  2314
do_test printf-2.6.1.4 {
sl@0
  2315
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 0.001
sl@0
  2316
} {abc: 2 3 (0.001) :xyz}
sl@0
  2317
do_test printf-2.6.1.5 {
sl@0
  2318
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 0.001
sl@0
  2319
} {abc: 2 3 (0.00100000) :xyz}
sl@0
  2320
do_test printf-2.6.1.6 {
sl@0
  2321
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 0.001
sl@0
  2322
} {abc: 2 3 (000000.001) :xyz}
sl@0
  2323
do_test printf-2.6.1.7 {
sl@0
  2324
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 0.001
sl@0
  2325
} {abc: 2 3 (0.001) :xyz}
sl@0
  2326
do_test printf-2.6.1.8 {
sl@0
  2327
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 0.001
sl@0
  2328
} {abc: 2 3 (1.000e-03) :xyz}
sl@0
  2329
do_test printf-2.6.1.9 {
sl@0
  2330
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 0.001
sl@0
  2331
} {abc: 2 3 (0.001) :xyz}
sl@0
  2332
do_test printf-2.6.2.1 {
sl@0
  2333
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 1.0e-20
sl@0
  2334
} {abc: (0.000) :xyz}
sl@0
  2335
do_test printf-2.6.2.2 {
sl@0
  2336
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 1.0e-20
sl@0
  2337
} {abc: (1.000e-20) :xyz}
sl@0
  2338
do_test printf-2.6.2.3 {
sl@0
  2339
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 1.0e-20
sl@0
  2340
} {abc: (1e-20) :xyz}
sl@0
  2341
do_test printf-2.6.2.4 {
sl@0
  2342
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 1.0e-20
sl@0
  2343
} {abc: 2 3 (1e-20) :xyz}
sl@0
  2344
do_test printf-2.6.2.5 {
sl@0
  2345
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 1.0e-20
sl@0
  2346
} {abc: 2 3 (1.00000e-20) :xyz}
sl@0
  2347
do_test printf-2.6.2.6 {
sl@0
  2348
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 1.0e-20
sl@0
  2349
} {abc: 2 3 (000001e-20) :xyz}
sl@0
  2350
do_test printf-2.6.2.7 {
sl@0
  2351
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 1.0e-20
sl@0
  2352
} {abc: 2 3 (0.000) :xyz}
sl@0
  2353
do_test printf-2.6.2.8 {
sl@0
  2354
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 1.0e-20
sl@0
  2355
} {abc: 2 3 (1.000e-20) :xyz}
sl@0
  2356
do_test printf-2.6.2.9 {
sl@0
  2357
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 1.0e-20
sl@0
  2358
} {abc: 2 3 (1e-20) :xyz}
sl@0
  2359
do_test printf-2.6.3.1 {
sl@0
  2360
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 1.0
sl@0
  2361
} {abc: (1.000) :xyz}
sl@0
  2362
do_test printf-2.6.3.2 {
sl@0
  2363
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 1.0
sl@0
  2364
} {abc: (1.000e+00) :xyz}
sl@0
  2365
do_test printf-2.6.3.3 {
sl@0
  2366
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 1.0
sl@0
  2367
} {abc: ( 1) :xyz}
sl@0
  2368
do_test printf-2.6.3.4 {
sl@0
  2369
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 1.0
sl@0
  2370
} {abc: 2 3 (1) :xyz}
sl@0
  2371
do_test printf-2.6.3.5 {
sl@0
  2372
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 1.0
sl@0
  2373
} {abc: 2 3 (1.00000) :xyz}
sl@0
  2374
do_test printf-2.6.3.6 {
sl@0
  2375
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 1.0
sl@0
  2376
} {abc: 2 3 (0000000001) :xyz}
sl@0
  2377
do_test printf-2.6.3.7 {
sl@0
  2378
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 1.0
sl@0
  2379
} {abc: 2 3 (1.000) :xyz}
sl@0
  2380
do_test printf-2.6.3.8 {
sl@0
  2381
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 1.0
sl@0
  2382
} {abc: 2 3 (1.000e+00) :xyz}
sl@0
  2383
do_test printf-2.6.3.9 {
sl@0
  2384
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 1.0
sl@0
  2385
} {abc: 2 3 ( 1) :xyz}
sl@0
  2386
do_test printf-2.6.4.1 {
sl@0
  2387
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 0.0
sl@0
  2388
} {abc: (0.000) :xyz}
sl@0
  2389
do_test printf-2.6.4.2 {
sl@0
  2390
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 0.0
sl@0
  2391
} {abc: (0.000e+00) :xyz}
sl@0
  2392
do_test printf-2.6.4.3 {
sl@0
  2393
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 0.0
sl@0
  2394
} {abc: ( 0) :xyz}
sl@0
  2395
do_test printf-2.6.4.4 {
sl@0
  2396
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 0.0
sl@0
  2397
} {abc: 2 3 (0) :xyz}
sl@0
  2398
do_test printf-2.6.4.5 {
sl@0
  2399
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 0.0
sl@0
  2400
} {abc: 2 3 (0.00000) :xyz}
sl@0
  2401
do_test printf-2.6.4.6 {
sl@0
  2402
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 0.0
sl@0
  2403
} {abc: 2 3 (0000000000) :xyz}
sl@0
  2404
do_test printf-2.6.4.7 {
sl@0
  2405
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 0.0
sl@0
  2406
} {abc: 2 3 (0.000) :xyz}
sl@0
  2407
do_test printf-2.6.4.8 {
sl@0
  2408
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 0.0
sl@0
  2409
} {abc: 2 3 (0.000e+00) :xyz}
sl@0
  2410
do_test printf-2.6.4.9 {
sl@0
  2411
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 0.0
sl@0
  2412
} {abc: 2 3 ( 0) :xyz}
sl@0
  2413
do_test printf-2.6.5.1 {
sl@0
  2414
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 100.0
sl@0
  2415
} {abc: (100.000) :xyz}
sl@0
  2416
do_test printf-2.6.5.2 {
sl@0
  2417
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 100.0
sl@0
  2418
} {abc: (1.000e+02) :xyz}
sl@0
  2419
do_test printf-2.6.5.3 {
sl@0
  2420
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 100.0
sl@0
  2421
} {abc: (100) :xyz}
sl@0
  2422
do_test printf-2.6.5.4 {
sl@0
  2423
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 100.0
sl@0
  2424
} {abc: 2 3 (100) :xyz}
sl@0
  2425
do_test printf-2.6.5.5 {
sl@0
  2426
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 100.0
sl@0
  2427
} {abc: 2 3 (100.000) :xyz}
sl@0
  2428
do_test printf-2.6.5.6 {
sl@0
  2429
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 100.0
sl@0
  2430
} {abc: 2 3 (0000000100) :xyz}
sl@0
  2431
do_test printf-2.6.5.7 {
sl@0
  2432
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 100.0
sl@0
  2433
} {abc: 2 3 (100.000) :xyz}
sl@0
  2434
do_test printf-2.6.5.8 {
sl@0
  2435
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 100.0
sl@0
  2436
} {abc: 2 3 (1.000e+02) :xyz}
sl@0
  2437
do_test printf-2.6.5.9 {
sl@0
  2438
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 100.0
sl@0
  2439
} {abc: 2 3 (100) :xyz}
sl@0
  2440
do_test printf-2.6.6.1 {
sl@0
  2441
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 9.99999
sl@0
  2442
} {abc: (10.000) :xyz}
sl@0
  2443
do_test printf-2.6.6.2 {
sl@0
  2444
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 9.99999
sl@0
  2445
} {abc: (1.000e+01) :xyz}
sl@0
  2446
do_test printf-2.6.6.3 {
sl@0
  2447
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 9.99999
sl@0
  2448
} {abc: (10) :xyz}
sl@0
  2449
do_test printf-2.6.6.4 {
sl@0
  2450
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 9.99999
sl@0
  2451
} {abc: 2 3 (9.99999) :xyz}
sl@0
  2452
do_test printf-2.6.6.5 {
sl@0
  2453
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 9.99999
sl@0
  2454
} {abc: 2 3 (9.99999) :xyz}
sl@0
  2455
do_test printf-2.6.6.6 {
sl@0
  2456
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 9.99999
sl@0
  2457
} {abc: 2 3 (0009.99999) :xyz}
sl@0
  2458
do_test printf-2.6.6.7 {
sl@0
  2459
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 9.99999
sl@0
  2460
} {abc: 2 3 (10.000) :xyz}
sl@0
  2461
do_test printf-2.6.6.8 {
sl@0
  2462
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 9.99999
sl@0
  2463
} {abc: 2 3 (1.000e+01) :xyz}
sl@0
  2464
do_test printf-2.6.6.9 {
sl@0
  2465
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 9.99999
sl@0
  2466
} {abc: 2 3 (10) :xyz}
sl@0
  2467
do_test printf-2.6.7.1 {
sl@0
  2468
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 -0.00543
sl@0
  2469
} {abc: (-0.005) :xyz}
sl@0
  2470
do_test printf-2.6.7.2 {
sl@0
  2471
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 -0.00543
sl@0
  2472
} {abc: (-5.430e-03) :xyz}
sl@0
  2473
do_test printf-2.6.7.3 {
sl@0
  2474
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 -0.00543
sl@0
  2475
} {abc: (-0.00543) :xyz}
sl@0
  2476
do_test printf-2.6.7.4 {
sl@0
  2477
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 -0.00543
sl@0
  2478
} {abc: 2 3 (-0.00543) :xyz}
sl@0
  2479
do_test printf-2.6.7.5 {
sl@0
  2480
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 -0.00543
sl@0
  2481
} {abc: 2 3 (-0.00543000) :xyz}
sl@0
  2482
do_test printf-2.6.7.6 {
sl@0
  2483
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 -0.00543
sl@0
  2484
} {abc: 2 3 (-000.00543) :xyz}
sl@0
  2485
do_test printf-2.6.7.7 {
sl@0
  2486
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 -0.00543
sl@0
  2487
} {abc: 2 3 (-0.005) :xyz}
sl@0
  2488
do_test printf-2.6.7.8 {
sl@0
  2489
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 -0.00543
sl@0
  2490
} {abc: 2 3 (-5.430e-03) :xyz}
sl@0
  2491
do_test printf-2.6.7.9 {
sl@0
  2492
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 -0.00543
sl@0
  2493
} {abc: 2 3 (-0.00543) :xyz}
sl@0
  2494
do_test printf-2.6.8.1 {
sl@0
  2495
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 -1.0
sl@0
  2496
} {abc: (-1.000) :xyz}
sl@0
  2497
do_test printf-2.6.8.2 {
sl@0
  2498
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 -1.0
sl@0
  2499
} {abc: (-1.000e+00) :xyz}
sl@0
  2500
do_test printf-2.6.8.3 {
sl@0
  2501
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 -1.0
sl@0
  2502
} {abc: (-1) :xyz}
sl@0
  2503
do_test printf-2.6.8.4 {
sl@0
  2504
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 -1.0
sl@0
  2505
} {abc: 2 3 (-1) :xyz}
sl@0
  2506
do_test printf-2.6.8.5 {
sl@0
  2507
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 -1.0
sl@0
  2508
} {abc: 2 3 (-1.00000) :xyz}
sl@0
  2509
do_test printf-2.6.8.6 {
sl@0
  2510
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 -1.0
sl@0
  2511
} {abc: 2 3 (-000000001) :xyz}
sl@0
  2512
do_test printf-2.6.8.7 {
sl@0
  2513
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 -1.0
sl@0
  2514
} {abc: 2 3 (-1.000) :xyz}
sl@0
  2515
do_test printf-2.6.8.8 {
sl@0
  2516
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 -1.0
sl@0
  2517
} {abc: 2 3 (-1.000e+00) :xyz}
sl@0
  2518
do_test printf-2.6.8.9 {
sl@0
  2519
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 -1.0
sl@0
  2520
} {abc: 2 3 (-1) :xyz}
sl@0
  2521
do_test printf-2.6.9.1 {
sl@0
  2522
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 -99.99999
sl@0
  2523
} {abc: (-100.000) :xyz}
sl@0
  2524
do_test printf-2.6.9.2 {
sl@0
  2525
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 -99.99999
sl@0
  2526
} {abc: (-1.000e+02) :xyz}
sl@0
  2527
do_test printf-2.6.9.3 {
sl@0
  2528
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 -99.99999
sl@0
  2529
} {abc: (-100) :xyz}
sl@0
  2530
do_test printf-2.6.9.4 {
sl@0
  2531
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 -99.99999
sl@0
  2532
} {abc: 2 3 (-100) :xyz}
sl@0
  2533
do_test printf-2.6.9.5 {
sl@0
  2534
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 -99.99999
sl@0
  2535
} {abc: 2 3 (-100.000) :xyz}
sl@0
  2536
do_test printf-2.6.9.6 {
sl@0
  2537
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 -99.99999
sl@0
  2538
} {abc: 2 3 (-000000100) :xyz}
sl@0
  2539
do_test printf-2.6.9.7 {
sl@0
  2540
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 -99.99999
sl@0
  2541
} {abc: 2 3 (-100.000) :xyz}
sl@0
  2542
do_test printf-2.6.9.8 {
sl@0
  2543
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 -99.99999
sl@0
  2544
} {abc: 2 3 (-1.000e+02) :xyz}
sl@0
  2545
do_test printf-2.6.9.9 {
sl@0
  2546
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 -99.99999
sl@0
  2547
} {abc: 2 3 (-100) :xyz}
sl@0
  2548
do_test printf-2.6.10.1 {
sl@0
  2549
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 3.14e+9
sl@0
  2550
} {abc: (3140000000.000) :xyz}
sl@0
  2551
do_test printf-2.6.10.2 {
sl@0
  2552
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 3.14e+9
sl@0
  2553
} {abc: (3.140e+09) :xyz}
sl@0
  2554
do_test printf-2.6.10.3 {
sl@0
  2555
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 3.14e+9
sl@0
  2556
} {abc: (3.14e+09) :xyz}
sl@0
  2557
do_test printf-2.6.10.4 {
sl@0
  2558
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 3.14e+9
sl@0
  2559
} {abc: 2 3 (3.14e+09) :xyz}
sl@0
  2560
do_test printf-2.6.10.5 {
sl@0
  2561
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 3.14e+9
sl@0
  2562
} {abc: 2 3 (3.14000e+09) :xyz}
sl@0
  2563
do_test printf-2.6.10.6 {
sl@0
  2564
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 3.14e+9
sl@0
  2565
} {abc: 2 3 (003.14e+09) :xyz}
sl@0
  2566
do_test printf-2.6.10.7 {
sl@0
  2567
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 3.14e+9
sl@0
  2568
} {abc: 2 3 (3140000000.000) :xyz}
sl@0
  2569
do_test printf-2.6.10.8 {
sl@0
  2570
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 3.14e+9
sl@0
  2571
} {abc: 2 3 (3.140e+09) :xyz}
sl@0
  2572
do_test printf-2.6.10.9 {
sl@0
  2573
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 3.14e+9
sl@0
  2574
} {abc: 2 3 (3.14e+09) :xyz}
sl@0
  2575
do_test printf-2.6.11.2 {
sl@0
  2576
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 -4.72732e+88
sl@0
  2577
} {abc: (-4.727e+88) :xyz}
sl@0
  2578
do_test printf-2.6.11.3 {
sl@0
  2579
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 -4.72732e+88
sl@0
  2580
} {abc: (-4.73e+88) :xyz}
sl@0
  2581
do_test printf-2.6.11.4 {
sl@0
  2582
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 -4.72732e+88
sl@0
  2583
} {abc: 2 3 (-4.72732e+88) :xyz}
sl@0
  2584
do_test printf-2.6.11.5 {
sl@0
  2585
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 -4.72732e+88
sl@0
  2586
} {abc: 2 3 (-4.72732e+88) :xyz}
sl@0
  2587
do_test printf-2.6.11.6 {
sl@0
  2588
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 -4.72732e+88
sl@0
  2589
} {abc: 2 3 (-4.72732e+88) :xyz}
sl@0
  2590
do_test printf-2.6.11.8 {
sl@0
  2591
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 -4.72732e+88
sl@0
  2592
} {abc: 2 3 (-4.727e+88) :xyz}
sl@0
  2593
do_test printf-2.6.11.9 {
sl@0
  2594
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 -4.72732e+88
sl@0
  2595
} {abc: 2 3 (-4.73e+88) :xyz}
sl@0
  2596
do_test printf-2.6.12.2 {
sl@0
  2597
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 9.87991e+143
sl@0
  2598
} {abc: (9.880e+143) :xyz}
sl@0
  2599
do_test printf-2.6.12.3 {
sl@0
  2600
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 9.87991e+143
sl@0
  2601
} {abc: (9.88e+143) :xyz}
sl@0
  2602
do_test printf-2.6.12.4 {
sl@0
  2603
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 9.87991e+143
sl@0
  2604
} {abc: 2 3 (9.87991e+143) :xyz}
sl@0
  2605
do_test printf-2.6.12.5 {
sl@0
  2606
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 9.87991e+143
sl@0
  2607
} {abc: 2 3 (9.87991e+143) :xyz}
sl@0
  2608
do_test printf-2.6.12.6 {
sl@0
  2609
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 9.87991e+143
sl@0
  2610
} {abc: 2 3 (9.87991e+143) :xyz}
sl@0
  2611
do_test printf-2.6.12.8 {
sl@0
  2612
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 9.87991e+143
sl@0
  2613
} {abc: 2 3 (9.880e+143) :xyz}
sl@0
  2614
do_test printf-2.6.12.9 {
sl@0
  2615
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 9.87991e+143
sl@0
  2616
} {abc: 2 3 (9.88e+143) :xyz}
sl@0
  2617
do_test printf-2.6.13.1 {
sl@0
  2618
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 -6.287291e-9
sl@0
  2619
} {abc: (-0.000) :xyz}
sl@0
  2620
do_test printf-2.6.13.2 {
sl@0
  2621
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 -6.287291e-9
sl@0
  2622
} {abc: (-6.287e-09) :xyz}
sl@0
  2623
do_test printf-2.6.13.3 {
sl@0
  2624
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 -6.287291e-9
sl@0
  2625
} {abc: (-6.29e-09) :xyz}
sl@0
  2626
do_test printf-2.6.13.4 {
sl@0
  2627
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 -6.287291e-9
sl@0
  2628
} {abc: 2 3 (-6.28729e-09) :xyz}
sl@0
  2629
do_test printf-2.6.13.5 {
sl@0
  2630
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 -6.287291e-9
sl@0
  2631
} {abc: 2 3 (-6.28729e-09) :xyz}
sl@0
  2632
do_test printf-2.6.13.6 {
sl@0
  2633
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 -6.287291e-9
sl@0
  2634
} {abc: 2 3 (-6.28729e-09) :xyz}
sl@0
  2635
do_test printf-2.6.13.7 {
sl@0
  2636
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 -6.287291e-9
sl@0
  2637
} {abc: 2 3 (-0.000) :xyz}
sl@0
  2638
do_test printf-2.6.13.8 {
sl@0
  2639
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 -6.287291e-9
sl@0
  2640
} {abc: 2 3 (-6.287e-09) :xyz}
sl@0
  2641
do_test printf-2.6.13.9 {
sl@0
  2642
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 -6.287291e-9
sl@0
  2643
} {abc: 2 3 (-6.29e-09) :xyz}
sl@0
  2644
do_test printf-2.6.14.1 {
sl@0
  2645
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 2 3 3.38826392e-110
sl@0
  2646
} {abc: (0.000) :xyz}
sl@0
  2647
do_test printf-2.6.14.2 {
sl@0
  2648
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 2 3 3.38826392e-110
sl@0
  2649
} {abc: (3.388e-110) :xyz}
sl@0
  2650
do_test printf-2.6.14.3 {
sl@0
  2651
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 2 3 3.38826392e-110
sl@0
  2652
} {abc: (3.39e-110) :xyz}
sl@0
  2653
do_test printf-2.6.14.4 {
sl@0
  2654
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 2 3 3.38826392e-110
sl@0
  2655
} {abc: 2 3 (3.38826e-110) :xyz}
sl@0
  2656
do_test printf-2.6.14.5 {
sl@0
  2657
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 2 3 3.38826392e-110
sl@0
  2658
} {abc: 2 3 (3.38826e-110) :xyz}
sl@0
  2659
do_test printf-2.6.14.6 {
sl@0
  2660
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 2 3 3.38826392e-110
sl@0
  2661
} {abc: 2 3 (3.38826e-110) :xyz}
sl@0
  2662
do_test printf-2.6.14.7 {
sl@0
  2663
  sqlite3_mprintf_double {abc: %d %d (%2.3f) :xyz} 2 3 3.38826392e-110
sl@0
  2664
} {abc: 2 3 (0.000) :xyz}
sl@0
  2665
do_test printf-2.6.14.8 {
sl@0
  2666
  sqlite3_mprintf_double {abc: %d %d (%2.3e) :xyz} 2 3 3.38826392e-110
sl@0
  2667
} {abc: 2 3 (3.388e-110) :xyz}
sl@0
  2668
do_test printf-2.6.14.9 {
sl@0
  2669
  sqlite3_mprintf_double {abc: %d %d (%2.3g) :xyz} 2 3 3.38826392e-110
sl@0
  2670
} {abc: 2 3 (3.39e-110) :xyz}
sl@0
  2671
do_test printf-2.7.1.1 {
sl@0
  2672
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 0.001
sl@0
  2673
} {abc: (0.001) :xyz}
sl@0
  2674
do_test printf-2.7.1.2 {
sl@0
  2675
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 0.001
sl@0
  2676
} {abc: (1.000e-03) :xyz}
sl@0
  2677
do_test printf-2.7.1.3 {
sl@0
  2678
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 0.001
sl@0
  2679
} {abc: (0.001) :xyz}
sl@0
  2680
do_test printf-2.7.1.4 {
sl@0
  2681
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 0.001
sl@0
  2682
} {abc: 3 3 (0.001) :xyz}
sl@0
  2683
do_test printf-2.7.1.5 {
sl@0
  2684
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 0.001
sl@0
  2685
} {abc: 3 3 (0.00100000) :xyz}
sl@0
  2686
do_test printf-2.7.1.6 {
sl@0
  2687
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 0.001
sl@0
  2688
} {abc: 3 3 (000000.001) :xyz}
sl@0
  2689
do_test printf-2.7.1.7 {
sl@0
  2690
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 0.001
sl@0
  2691
} {abc: 3 3 (0.001) :xyz}
sl@0
  2692
do_test printf-2.7.1.8 {
sl@0
  2693
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 0.001
sl@0
  2694
} {abc: 3 3 (1.000e-03) :xyz}
sl@0
  2695
do_test printf-2.7.1.9 {
sl@0
  2696
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 0.001
sl@0
  2697
} {abc: 3 3 (0.001) :xyz}
sl@0
  2698
do_test printf-2.7.2.1 {
sl@0
  2699
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 1.0e-20
sl@0
  2700
} {abc: (0.000) :xyz}
sl@0
  2701
do_test printf-2.7.2.2 {
sl@0
  2702
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 1.0e-20
sl@0
  2703
} {abc: (1.000e-20) :xyz}
sl@0
  2704
do_test printf-2.7.2.3 {
sl@0
  2705
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 1.0e-20
sl@0
  2706
} {abc: (1e-20) :xyz}
sl@0
  2707
do_test printf-2.7.2.4 {
sl@0
  2708
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 1.0e-20
sl@0
  2709
} {abc: 3 3 (1e-20) :xyz}
sl@0
  2710
do_test printf-2.7.2.5 {
sl@0
  2711
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 1.0e-20
sl@0
  2712
} {abc: 3 3 (1.00000e-20) :xyz}
sl@0
  2713
do_test printf-2.7.2.6 {
sl@0
  2714
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 1.0e-20
sl@0
  2715
} {abc: 3 3 (000001e-20) :xyz}
sl@0
  2716
do_test printf-2.7.2.7 {
sl@0
  2717
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 1.0e-20
sl@0
  2718
} {abc: 3 3 (0.000) :xyz}
sl@0
  2719
do_test printf-2.7.2.8 {
sl@0
  2720
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 1.0e-20
sl@0
  2721
} {abc: 3 3 (1.000e-20) :xyz}
sl@0
  2722
do_test printf-2.7.2.9 {
sl@0
  2723
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 1.0e-20
sl@0
  2724
} {abc: 3 3 (1e-20) :xyz}
sl@0
  2725
do_test printf-2.7.3.1 {
sl@0
  2726
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 1.0
sl@0
  2727
} {abc: (1.000) :xyz}
sl@0
  2728
do_test printf-2.7.3.2 {
sl@0
  2729
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 1.0
sl@0
  2730
} {abc: (1.000e+00) :xyz}
sl@0
  2731
do_test printf-2.7.3.3 {
sl@0
  2732
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 1.0
sl@0
  2733
} {abc: (  1) :xyz}
sl@0
  2734
do_test printf-2.7.3.4 {
sl@0
  2735
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 1.0
sl@0
  2736
} {abc: 3 3 (1) :xyz}
sl@0
  2737
do_test printf-2.7.3.5 {
sl@0
  2738
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 1.0
sl@0
  2739
} {abc: 3 3 (1.00000) :xyz}
sl@0
  2740
do_test printf-2.7.3.6 {
sl@0
  2741
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 1.0
sl@0
  2742
} {abc: 3 3 (0000000001) :xyz}
sl@0
  2743
do_test printf-2.7.3.7 {
sl@0
  2744
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 1.0
sl@0
  2745
} {abc: 3 3 (1.000) :xyz}
sl@0
  2746
do_test printf-2.7.3.8 {
sl@0
  2747
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 1.0
sl@0
  2748
} {abc: 3 3 (1.000e+00) :xyz}
sl@0
  2749
do_test printf-2.7.3.9 {
sl@0
  2750
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 1.0
sl@0
  2751
} {abc: 3 3 (  1) :xyz}
sl@0
  2752
do_test printf-2.7.4.1 {
sl@0
  2753
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 0.0
sl@0
  2754
} {abc: (0.000) :xyz}
sl@0
  2755
do_test printf-2.7.4.2 {
sl@0
  2756
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 0.0
sl@0
  2757
} {abc: (0.000e+00) :xyz}
sl@0
  2758
do_test printf-2.7.4.3 {
sl@0
  2759
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 0.0
sl@0
  2760
} {abc: (  0) :xyz}
sl@0
  2761
do_test printf-2.7.4.4 {
sl@0
  2762
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 0.0
sl@0
  2763
} {abc: 3 3 (0) :xyz}
sl@0
  2764
do_test printf-2.7.4.5 {
sl@0
  2765
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 0.0
sl@0
  2766
} {abc: 3 3 (0.00000) :xyz}
sl@0
  2767
do_test printf-2.7.4.6 {
sl@0
  2768
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 0.0
sl@0
  2769
} {abc: 3 3 (0000000000) :xyz}
sl@0
  2770
do_test printf-2.7.4.7 {
sl@0
  2771
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 0.0
sl@0
  2772
} {abc: 3 3 (0.000) :xyz}
sl@0
  2773
do_test printf-2.7.4.8 {
sl@0
  2774
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 0.0
sl@0
  2775
} {abc: 3 3 (0.000e+00) :xyz}
sl@0
  2776
do_test printf-2.7.4.9 {
sl@0
  2777
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 0.0
sl@0
  2778
} {abc: 3 3 (  0) :xyz}
sl@0
  2779
do_test printf-2.7.5.1 {
sl@0
  2780
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 100.0
sl@0
  2781
} {abc: (100.000) :xyz}
sl@0
  2782
do_test printf-2.7.5.2 {
sl@0
  2783
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 100.0
sl@0
  2784
} {abc: (1.000e+02) :xyz}
sl@0
  2785
do_test printf-2.7.5.3 {
sl@0
  2786
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 100.0
sl@0
  2787
} {abc: (100) :xyz}
sl@0
  2788
do_test printf-2.7.5.4 {
sl@0
  2789
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 100.0
sl@0
  2790
} {abc: 3 3 (100) :xyz}
sl@0
  2791
do_test printf-2.7.5.5 {
sl@0
  2792
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 100.0
sl@0
  2793
} {abc: 3 3 (100.000) :xyz}
sl@0
  2794
do_test printf-2.7.5.6 {
sl@0
  2795
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 100.0
sl@0
  2796
} {abc: 3 3 (0000000100) :xyz}
sl@0
  2797
do_test printf-2.7.5.7 {
sl@0
  2798
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 100.0
sl@0
  2799
} {abc: 3 3 (100.000) :xyz}
sl@0
  2800
do_test printf-2.7.5.8 {
sl@0
  2801
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 100.0
sl@0
  2802
} {abc: 3 3 (1.000e+02) :xyz}
sl@0
  2803
do_test printf-2.7.5.9 {
sl@0
  2804
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 100.0
sl@0
  2805
} {abc: 3 3 (100) :xyz}
sl@0
  2806
do_test printf-2.7.6.1 {
sl@0
  2807
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 9.99999
sl@0
  2808
} {abc: (10.000) :xyz}
sl@0
  2809
do_test printf-2.7.6.2 {
sl@0
  2810
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 9.99999
sl@0
  2811
} {abc: (1.000e+01) :xyz}
sl@0
  2812
do_test printf-2.7.6.3 {
sl@0
  2813
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 9.99999
sl@0
  2814
} {abc: ( 10) :xyz}
sl@0
  2815
do_test printf-2.7.6.4 {
sl@0
  2816
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 9.99999
sl@0
  2817
} {abc: 3 3 (9.99999) :xyz}
sl@0
  2818
do_test printf-2.7.6.5 {
sl@0
  2819
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 9.99999
sl@0
  2820
} {abc: 3 3 (9.99999) :xyz}
sl@0
  2821
do_test printf-2.7.6.6 {
sl@0
  2822
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 9.99999
sl@0
  2823
} {abc: 3 3 (0009.99999) :xyz}
sl@0
  2824
do_test printf-2.7.6.7 {
sl@0
  2825
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 9.99999
sl@0
  2826
} {abc: 3 3 (10.000) :xyz}
sl@0
  2827
do_test printf-2.7.6.8 {
sl@0
  2828
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 9.99999
sl@0
  2829
} {abc: 3 3 (1.000e+01) :xyz}
sl@0
  2830
do_test printf-2.7.6.9 {
sl@0
  2831
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 9.99999
sl@0
  2832
} {abc: 3 3 ( 10) :xyz}
sl@0
  2833
do_test printf-2.7.7.1 {
sl@0
  2834
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 -0.00543
sl@0
  2835
} {abc: (-0.005) :xyz}
sl@0
  2836
do_test printf-2.7.7.2 {
sl@0
  2837
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 -0.00543
sl@0
  2838
} {abc: (-5.430e-03) :xyz}
sl@0
  2839
do_test printf-2.7.7.3 {
sl@0
  2840
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 -0.00543
sl@0
  2841
} {abc: (-0.00543) :xyz}
sl@0
  2842
do_test printf-2.7.7.4 {
sl@0
  2843
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 -0.00543
sl@0
  2844
} {abc: 3 3 (-0.00543) :xyz}
sl@0
  2845
do_test printf-2.7.7.5 {
sl@0
  2846
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 -0.00543
sl@0
  2847
} {abc: 3 3 (-0.00543000) :xyz}
sl@0
  2848
do_test printf-2.7.7.6 {
sl@0
  2849
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 -0.00543
sl@0
  2850
} {abc: 3 3 (-000.00543) :xyz}
sl@0
  2851
do_test printf-2.7.7.7 {
sl@0
  2852
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 -0.00543
sl@0
  2853
} {abc: 3 3 (-0.005) :xyz}
sl@0
  2854
do_test printf-2.7.7.8 {
sl@0
  2855
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 -0.00543
sl@0
  2856
} {abc: 3 3 (-5.430e-03) :xyz}
sl@0
  2857
do_test printf-2.7.7.9 {
sl@0
  2858
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 -0.00543
sl@0
  2859
} {abc: 3 3 (-0.00543) :xyz}
sl@0
  2860
do_test printf-2.7.8.1 {
sl@0
  2861
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 -1.0
sl@0
  2862
} {abc: (-1.000) :xyz}
sl@0
  2863
do_test printf-2.7.8.2 {
sl@0
  2864
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 -1.0
sl@0
  2865
} {abc: (-1.000e+00) :xyz}
sl@0
  2866
do_test printf-2.7.8.3 {
sl@0
  2867
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 -1.0
sl@0
  2868
} {abc: ( -1) :xyz}
sl@0
  2869
do_test printf-2.7.8.4 {
sl@0
  2870
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 -1.0
sl@0
  2871
} {abc: 3 3 (-1) :xyz}
sl@0
  2872
do_test printf-2.7.8.5 {
sl@0
  2873
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 -1.0
sl@0
  2874
} {abc: 3 3 (-1.00000) :xyz}
sl@0
  2875
do_test printf-2.7.8.6 {
sl@0
  2876
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 -1.0
sl@0
  2877
} {abc: 3 3 (-000000001) :xyz}
sl@0
  2878
do_test printf-2.7.8.7 {
sl@0
  2879
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 -1.0
sl@0
  2880
} {abc: 3 3 (-1.000) :xyz}
sl@0
  2881
do_test printf-2.7.8.8 {
sl@0
  2882
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 -1.0
sl@0
  2883
} {abc: 3 3 (-1.000e+00) :xyz}
sl@0
  2884
do_test printf-2.7.8.9 {
sl@0
  2885
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 -1.0
sl@0
  2886
} {abc: 3 3 ( -1) :xyz}
sl@0
  2887
do_test printf-2.7.9.1 {
sl@0
  2888
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 -99.99999
sl@0
  2889
} {abc: (-100.000) :xyz}
sl@0
  2890
do_test printf-2.7.9.2 {
sl@0
  2891
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 -99.99999
sl@0
  2892
} {abc: (-1.000e+02) :xyz}
sl@0
  2893
do_test printf-2.7.9.3 {
sl@0
  2894
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 -99.99999
sl@0
  2895
} {abc: (-100) :xyz}
sl@0
  2896
do_test printf-2.7.9.4 {
sl@0
  2897
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 -99.99999
sl@0
  2898
} {abc: 3 3 (-100) :xyz}
sl@0
  2899
do_test printf-2.7.9.5 {
sl@0
  2900
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 -99.99999
sl@0
  2901
} {abc: 3 3 (-100.000) :xyz}
sl@0
  2902
do_test printf-2.7.9.6 {
sl@0
  2903
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 -99.99999
sl@0
  2904
} {abc: 3 3 (-000000100) :xyz}
sl@0
  2905
do_test printf-2.7.9.7 {
sl@0
  2906
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 -99.99999
sl@0
  2907
} {abc: 3 3 (-100.000) :xyz}
sl@0
  2908
do_test printf-2.7.9.8 {
sl@0
  2909
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 -99.99999
sl@0
  2910
} {abc: 3 3 (-1.000e+02) :xyz}
sl@0
  2911
do_test printf-2.7.9.9 {
sl@0
  2912
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 -99.99999
sl@0
  2913
} {abc: 3 3 (-100) :xyz}
sl@0
  2914
do_test printf-2.7.10.1 {
sl@0
  2915
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 3.14e+9
sl@0
  2916
} {abc: (3140000000.000) :xyz}
sl@0
  2917
do_test printf-2.7.10.2 {
sl@0
  2918
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 3.14e+9
sl@0
  2919
} {abc: (3.140e+09) :xyz}
sl@0
  2920
do_test printf-2.7.10.3 {
sl@0
  2921
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 3.14e+9
sl@0
  2922
} {abc: (3.14e+09) :xyz}
sl@0
  2923
do_test printf-2.7.10.4 {
sl@0
  2924
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 3.14e+9
sl@0
  2925
} {abc: 3 3 (3.14e+09) :xyz}
sl@0
  2926
do_test printf-2.7.10.5 {
sl@0
  2927
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 3.14e+9
sl@0
  2928
} {abc: 3 3 (3.14000e+09) :xyz}
sl@0
  2929
do_test printf-2.7.10.6 {
sl@0
  2930
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 3.14e+9
sl@0
  2931
} {abc: 3 3 (003.14e+09) :xyz}
sl@0
  2932
do_test printf-2.7.10.7 {
sl@0
  2933
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 3.14e+9
sl@0
  2934
} {abc: 3 3 (3140000000.000) :xyz}
sl@0
  2935
do_test printf-2.7.10.8 {
sl@0
  2936
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 3.14e+9
sl@0
  2937
} {abc: 3 3 (3.140e+09) :xyz}
sl@0
  2938
do_test printf-2.7.10.9 {
sl@0
  2939
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 3.14e+9
sl@0
  2940
} {abc: 3 3 (3.14e+09) :xyz}
sl@0
  2941
do_test printf-2.7.11.2 {
sl@0
  2942
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 -4.72732e+88
sl@0
  2943
} {abc: (-4.727e+88) :xyz}
sl@0
  2944
do_test printf-2.7.11.3 {
sl@0
  2945
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 -4.72732e+88
sl@0
  2946
} {abc: (-4.73e+88) :xyz}
sl@0
  2947
do_test printf-2.7.11.4 {
sl@0
  2948
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 -4.72732e+88
sl@0
  2949
} {abc: 3 3 (-4.72732e+88) :xyz}
sl@0
  2950
do_test printf-2.7.11.5 {
sl@0
  2951
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 -4.72732e+88
sl@0
  2952
} {abc: 3 3 (-4.72732e+88) :xyz}
sl@0
  2953
do_test printf-2.7.11.6 {
sl@0
  2954
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 -4.72732e+88
sl@0
  2955
} {abc: 3 3 (-4.72732e+88) :xyz}
sl@0
  2956
do_test printf-2.7.11.8 {
sl@0
  2957
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 -4.72732e+88
sl@0
  2958
} {abc: 3 3 (-4.727e+88) :xyz}
sl@0
  2959
do_test printf-2.7.11.9 {
sl@0
  2960
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 -4.72732e+88
sl@0
  2961
} {abc: 3 3 (-4.73e+88) :xyz}
sl@0
  2962
do_test printf-2.7.12.2 {
sl@0
  2963
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 9.87991e+143
sl@0
  2964
} {abc: (9.880e+143) :xyz}
sl@0
  2965
do_test printf-2.7.12.3 {
sl@0
  2966
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 9.87991e+143
sl@0
  2967
} {abc: (9.88e+143) :xyz}
sl@0
  2968
do_test printf-2.7.12.4 {
sl@0
  2969
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 9.87991e+143
sl@0
  2970
} {abc: 3 3 (9.87991e+143) :xyz}
sl@0
  2971
do_test printf-2.7.12.5 {
sl@0
  2972
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 9.87991e+143
sl@0
  2973
} {abc: 3 3 (9.87991e+143) :xyz}
sl@0
  2974
do_test printf-2.7.12.6 {
sl@0
  2975
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 9.87991e+143
sl@0
  2976
} {abc: 3 3 (9.87991e+143) :xyz}
sl@0
  2977
do_test printf-2.7.12.8 {
sl@0
  2978
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 9.87991e+143
sl@0
  2979
} {abc: 3 3 (9.880e+143) :xyz}
sl@0
  2980
do_test printf-2.7.12.9 {
sl@0
  2981
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 9.87991e+143
sl@0
  2982
} {abc: 3 3 (9.88e+143) :xyz}
sl@0
  2983
do_test printf-2.7.13.1 {
sl@0
  2984
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 -6.287291e-9
sl@0
  2985
} {abc: (-0.000) :xyz}
sl@0
  2986
do_test printf-2.7.13.2 {
sl@0
  2987
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 -6.287291e-9
sl@0
  2988
} {abc: (-6.287e-09) :xyz}
sl@0
  2989
do_test printf-2.7.13.3 {
sl@0
  2990
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 -6.287291e-9
sl@0
  2991
} {abc: (-6.29e-09) :xyz}
sl@0
  2992
do_test printf-2.7.13.4 {
sl@0
  2993
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 -6.287291e-9
sl@0
  2994
} {abc: 3 3 (-6.28729e-09) :xyz}
sl@0
  2995
do_test printf-2.7.13.5 {
sl@0
  2996
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 -6.287291e-9
sl@0
  2997
} {abc: 3 3 (-6.28729e-09) :xyz}
sl@0
  2998
do_test printf-2.7.13.6 {
sl@0
  2999
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 -6.287291e-9
sl@0
  3000
} {abc: 3 3 (-6.28729e-09) :xyz}
sl@0
  3001
do_test printf-2.7.13.7 {
sl@0
  3002
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 -6.287291e-9
sl@0
  3003
} {abc: 3 3 (-0.000) :xyz}
sl@0
  3004
do_test printf-2.7.13.8 {
sl@0
  3005
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 -6.287291e-9
sl@0
  3006
} {abc: 3 3 (-6.287e-09) :xyz}
sl@0
  3007
do_test printf-2.7.13.9 {
sl@0
  3008
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 -6.287291e-9
sl@0
  3009
} {abc: 3 3 (-6.29e-09) :xyz}
sl@0
  3010
do_test printf-2.7.14.1 {
sl@0
  3011
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 3 3.38826392e-110
sl@0
  3012
} {abc: (0.000) :xyz}
sl@0
  3013
do_test printf-2.7.14.2 {
sl@0
  3014
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 3 3.38826392e-110
sl@0
  3015
} {abc: (3.388e-110) :xyz}
sl@0
  3016
do_test printf-2.7.14.3 {
sl@0
  3017
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 3 3.38826392e-110
sl@0
  3018
} {abc: (3.39e-110) :xyz}
sl@0
  3019
do_test printf-2.7.14.4 {
sl@0
  3020
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 3 3.38826392e-110
sl@0
  3021
} {abc: 3 3 (3.38826e-110) :xyz}
sl@0
  3022
do_test printf-2.7.14.5 {
sl@0
  3023
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 3 3.38826392e-110
sl@0
  3024
} {abc: 3 3 (3.38826e-110) :xyz}
sl@0
  3025
do_test printf-2.7.14.6 {
sl@0
  3026
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 3 3.38826392e-110
sl@0
  3027
} {abc: 3 3 (3.38826e-110) :xyz}
sl@0
  3028
do_test printf-2.7.14.7 {
sl@0
  3029
  sqlite3_mprintf_double {abc: %d %d (%3.3f) :xyz} 3 3 3.38826392e-110
sl@0
  3030
} {abc: 3 3 (0.000) :xyz}
sl@0
  3031
do_test printf-2.7.14.8 {
sl@0
  3032
  sqlite3_mprintf_double {abc: %d %d (%3.3e) :xyz} 3 3 3.38826392e-110
sl@0
  3033
} {abc: 3 3 (3.388e-110) :xyz}
sl@0
  3034
do_test printf-2.7.14.9 {
sl@0
  3035
  sqlite3_mprintf_double {abc: %d %d (%3.3g) :xyz} 3 3 3.38826392e-110
sl@0
  3036
} {abc: 3 3 (3.39e-110) :xyz}
sl@0
  3037
do_test printf-2.8.1.1 {
sl@0
  3038
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 0.001
sl@0
  3039
} {abc: (0.00) :xyz}
sl@0
  3040
do_test printf-2.8.1.2 {
sl@0
  3041
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 0.001
sl@0
  3042
} {abc: (1.00e-03) :xyz}
sl@0
  3043
do_test printf-2.8.1.3 {
sl@0
  3044
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 0.001
sl@0
  3045
} {abc: (0.001) :xyz}
sl@0
  3046
do_test printf-2.8.1.4 {
sl@0
  3047
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 0.001
sl@0
  3048
} {abc: 3 2 (0.001) :xyz}
sl@0
  3049
do_test printf-2.8.1.5 {
sl@0
  3050
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 0.001
sl@0
  3051
} {abc: 3 2 (0.00100000) :xyz}
sl@0
  3052
do_test printf-2.8.1.6 {
sl@0
  3053
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 0.001
sl@0
  3054
} {abc: 3 2 (000000.001) :xyz}
sl@0
  3055
do_test printf-2.8.1.7 {
sl@0
  3056
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 0.001
sl@0
  3057
} {abc: 3 2 (0.00) :xyz}
sl@0
  3058
do_test printf-2.8.1.8 {
sl@0
  3059
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 0.001
sl@0
  3060
} {abc: 3 2 (1.00e-03) :xyz}
sl@0
  3061
do_test printf-2.8.1.9 {
sl@0
  3062
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 0.001
sl@0
  3063
} {abc: 3 2 (0.001) :xyz}
sl@0
  3064
do_test printf-2.8.2.1 {
sl@0
  3065
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 1.0e-20
sl@0
  3066
} {abc: (0.00) :xyz}
sl@0
  3067
do_test printf-2.8.2.2 {
sl@0
  3068
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 1.0e-20
sl@0
  3069
} {abc: (1.00e-20) :xyz}
sl@0
  3070
do_test printf-2.8.2.3 {
sl@0
  3071
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 1.0e-20
sl@0
  3072
} {abc: (1e-20) :xyz}
sl@0
  3073
do_test printf-2.8.2.4 {
sl@0
  3074
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 1.0e-20
sl@0
  3075
} {abc: 3 2 (1e-20) :xyz}
sl@0
  3076
do_test printf-2.8.2.5 {
sl@0
  3077
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 1.0e-20
sl@0
  3078
} {abc: 3 2 (1.00000e-20) :xyz}
sl@0
  3079
do_test printf-2.8.2.6 {
sl@0
  3080
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 1.0e-20
sl@0
  3081
} {abc: 3 2 (000001e-20) :xyz}
sl@0
  3082
do_test printf-2.8.2.7 {
sl@0
  3083
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 1.0e-20
sl@0
  3084
} {abc: 3 2 (0.00) :xyz}
sl@0
  3085
do_test printf-2.8.2.8 {
sl@0
  3086
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 1.0e-20
sl@0
  3087
} {abc: 3 2 (1.00e-20) :xyz}
sl@0
  3088
do_test printf-2.8.2.9 {
sl@0
  3089
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 1.0e-20
sl@0
  3090
} {abc: 3 2 (1e-20) :xyz}
sl@0
  3091
do_test printf-2.8.3.1 {
sl@0
  3092
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 1.0
sl@0
  3093
} {abc: (1.00) :xyz}
sl@0
  3094
do_test printf-2.8.3.2 {
sl@0
  3095
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 1.0
sl@0
  3096
} {abc: (1.00e+00) :xyz}
sl@0
  3097
do_test printf-2.8.3.3 {
sl@0
  3098
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 1.0
sl@0
  3099
} {abc: (  1) :xyz}
sl@0
  3100
do_test printf-2.8.3.4 {
sl@0
  3101
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 1.0
sl@0
  3102
} {abc: 3 2 (1) :xyz}
sl@0
  3103
do_test printf-2.8.3.5 {
sl@0
  3104
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 1.0
sl@0
  3105
} {abc: 3 2 (1.00000) :xyz}
sl@0
  3106
do_test printf-2.8.3.6 {
sl@0
  3107
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 1.0
sl@0
  3108
} {abc: 3 2 (0000000001) :xyz}
sl@0
  3109
do_test printf-2.8.3.7 {
sl@0
  3110
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 1.0
sl@0
  3111
} {abc: 3 2 (1.00) :xyz}
sl@0
  3112
do_test printf-2.8.3.8 {
sl@0
  3113
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 1.0
sl@0
  3114
} {abc: 3 2 (1.00e+00) :xyz}
sl@0
  3115
do_test printf-2.8.3.9 {
sl@0
  3116
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 1.0
sl@0
  3117
} {abc: 3 2 (  1) :xyz}
sl@0
  3118
do_test printf-2.8.4.1 {
sl@0
  3119
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 0.0
sl@0
  3120
} {abc: (0.00) :xyz}
sl@0
  3121
do_test printf-2.8.4.2 {
sl@0
  3122
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 0.0
sl@0
  3123
} {abc: (0.00e+00) :xyz}
sl@0
  3124
do_test printf-2.8.4.3 {
sl@0
  3125
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 0.0
sl@0
  3126
} {abc: (  0) :xyz}
sl@0
  3127
do_test printf-2.8.4.4 {
sl@0
  3128
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 0.0
sl@0
  3129
} {abc: 3 2 (0) :xyz}
sl@0
  3130
do_test printf-2.8.4.5 {
sl@0
  3131
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 0.0
sl@0
  3132
} {abc: 3 2 (0.00000) :xyz}
sl@0
  3133
do_test printf-2.8.4.6 {
sl@0
  3134
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 0.0
sl@0
  3135
} {abc: 3 2 (0000000000) :xyz}
sl@0
  3136
do_test printf-2.8.4.7 {
sl@0
  3137
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 0.0
sl@0
  3138
} {abc: 3 2 (0.00) :xyz}
sl@0
  3139
do_test printf-2.8.4.8 {
sl@0
  3140
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 0.0
sl@0
  3141
} {abc: 3 2 (0.00e+00) :xyz}
sl@0
  3142
do_test printf-2.8.4.9 {
sl@0
  3143
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 0.0
sl@0
  3144
} {abc: 3 2 (  0) :xyz}
sl@0
  3145
do_test printf-2.8.5.1 {
sl@0
  3146
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 100.0
sl@0
  3147
} {abc: (100.00) :xyz}
sl@0
  3148
do_test printf-2.8.5.2 {
sl@0
  3149
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 100.0
sl@0
  3150
} {abc: (1.00e+02) :xyz}
sl@0
  3151
do_test printf-2.8.5.3 {
sl@0
  3152
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 100.0
sl@0
  3153
} {abc: (1e+02) :xyz}
sl@0
  3154
do_test printf-2.8.5.4 {
sl@0
  3155
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 100.0
sl@0
  3156
} {abc: 3 2 (100) :xyz}
sl@0
  3157
do_test printf-2.8.5.5 {
sl@0
  3158
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 100.0
sl@0
  3159
} {abc: 3 2 (100.000) :xyz}
sl@0
  3160
do_test printf-2.8.5.6 {
sl@0
  3161
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 100.0
sl@0
  3162
} {abc: 3 2 (0000000100) :xyz}
sl@0
  3163
do_test printf-2.8.5.7 {
sl@0
  3164
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 100.0
sl@0
  3165
} {abc: 3 2 (100.00) :xyz}
sl@0
  3166
do_test printf-2.8.5.8 {
sl@0
  3167
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 100.0
sl@0
  3168
} {abc: 3 2 (1.00e+02) :xyz}
sl@0
  3169
do_test printf-2.8.5.9 {
sl@0
  3170
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 100.0
sl@0
  3171
} {abc: 3 2 (1e+02) :xyz}
sl@0
  3172
do_test printf-2.8.6.1 {
sl@0
  3173
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 9.99999
sl@0
  3174
} {abc: (10.00) :xyz}
sl@0
  3175
do_test printf-2.8.6.2 {
sl@0
  3176
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 9.99999
sl@0
  3177
} {abc: (1.00e+01) :xyz}
sl@0
  3178
do_test printf-2.8.6.3 {
sl@0
  3179
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 9.99999
sl@0
  3180
} {abc: ( 10) :xyz}
sl@0
  3181
do_test printf-2.8.6.4 {
sl@0
  3182
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 9.99999
sl@0
  3183
} {abc: 3 2 (9.99999) :xyz}
sl@0
  3184
do_test printf-2.8.6.5 {
sl@0
  3185
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 9.99999
sl@0
  3186
} {abc: 3 2 (9.99999) :xyz}
sl@0
  3187
do_test printf-2.8.6.6 {
sl@0
  3188
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 9.99999
sl@0
  3189
} {abc: 3 2 (0009.99999) :xyz}
sl@0
  3190
do_test printf-2.8.6.7 {
sl@0
  3191
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 9.99999
sl@0
  3192
} {abc: 3 2 (10.00) :xyz}
sl@0
  3193
do_test printf-2.8.6.8 {
sl@0
  3194
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 9.99999
sl@0
  3195
} {abc: 3 2 (1.00e+01) :xyz}
sl@0
  3196
do_test printf-2.8.6.9 {
sl@0
  3197
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 9.99999
sl@0
  3198
} {abc: 3 2 ( 10) :xyz}
sl@0
  3199
do_test printf-2.8.7.1 {
sl@0
  3200
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 -0.00543
sl@0
  3201
} {abc: (-0.01) :xyz}
sl@0
  3202
do_test printf-2.8.7.2 {
sl@0
  3203
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 -0.00543
sl@0
  3204
} {abc: (-5.43e-03) :xyz}
sl@0
  3205
do_test printf-2.8.7.3 {
sl@0
  3206
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 -0.00543
sl@0
  3207
} {abc: (-0.0054) :xyz}
sl@0
  3208
do_test printf-2.8.7.4 {
sl@0
  3209
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 -0.00543
sl@0
  3210
} {abc: 3 2 (-0.00543) :xyz}
sl@0
  3211
do_test printf-2.8.7.5 {
sl@0
  3212
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 -0.00543
sl@0
  3213
} {abc: 3 2 (-0.00543000) :xyz}
sl@0
  3214
do_test printf-2.8.7.6 {
sl@0
  3215
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 -0.00543
sl@0
  3216
} {abc: 3 2 (-000.00543) :xyz}
sl@0
  3217
do_test printf-2.8.7.7 {
sl@0
  3218
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 -0.00543
sl@0
  3219
} {abc: 3 2 (-0.01) :xyz}
sl@0
  3220
do_test printf-2.8.7.8 {
sl@0
  3221
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 -0.00543
sl@0
  3222
} {abc: 3 2 (-5.43e-03) :xyz}
sl@0
  3223
do_test printf-2.8.7.9 {
sl@0
  3224
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 -0.00543
sl@0
  3225
} {abc: 3 2 (-0.0054) :xyz}
sl@0
  3226
do_test printf-2.8.8.1 {
sl@0
  3227
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 -1.0
sl@0
  3228
} {abc: (-1.00) :xyz}
sl@0
  3229
do_test printf-2.8.8.2 {
sl@0
  3230
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 -1.0
sl@0
  3231
} {abc: (-1.00e+00) :xyz}
sl@0
  3232
do_test printf-2.8.8.3 {
sl@0
  3233
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 -1.0
sl@0
  3234
} {abc: ( -1) :xyz}
sl@0
  3235
do_test printf-2.8.8.4 {
sl@0
  3236
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 -1.0
sl@0
  3237
} {abc: 3 2 (-1) :xyz}
sl@0
  3238
do_test printf-2.8.8.5 {
sl@0
  3239
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 -1.0
sl@0
  3240
} {abc: 3 2 (-1.00000) :xyz}
sl@0
  3241
do_test printf-2.8.8.6 {
sl@0
  3242
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 -1.0
sl@0
  3243
} {abc: 3 2 (-000000001) :xyz}
sl@0
  3244
do_test printf-2.8.8.7 {
sl@0
  3245
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 -1.0
sl@0
  3246
} {abc: 3 2 (-1.00) :xyz}
sl@0
  3247
do_test printf-2.8.8.8 {
sl@0
  3248
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 -1.0
sl@0
  3249
} {abc: 3 2 (-1.00e+00) :xyz}
sl@0
  3250
do_test printf-2.8.8.9 {
sl@0
  3251
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 -1.0
sl@0
  3252
} {abc: 3 2 ( -1) :xyz}
sl@0
  3253
do_test printf-2.8.9.1 {
sl@0
  3254
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 -99.99999
sl@0
  3255
} {abc: (-100.00) :xyz}
sl@0
  3256
do_test printf-2.8.9.2 {
sl@0
  3257
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 -99.99999
sl@0
  3258
} {abc: (-1.00e+02) :xyz}
sl@0
  3259
do_test printf-2.8.9.3 {
sl@0
  3260
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 -99.99999
sl@0
  3261
} {abc: (-1e+02) :xyz}
sl@0
  3262
do_test printf-2.8.9.4 {
sl@0
  3263
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 -99.99999
sl@0
  3264
} {abc: 3 2 (-100) :xyz}
sl@0
  3265
do_test printf-2.8.9.5 {
sl@0
  3266
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 -99.99999
sl@0
  3267
} {abc: 3 2 (-100.000) :xyz}
sl@0
  3268
do_test printf-2.8.9.6 {
sl@0
  3269
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 -99.99999
sl@0
  3270
} {abc: 3 2 (-000000100) :xyz}
sl@0
  3271
do_test printf-2.8.9.7 {
sl@0
  3272
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 -99.99999
sl@0
  3273
} {abc: 3 2 (-100.00) :xyz}
sl@0
  3274
do_test printf-2.8.9.8 {
sl@0
  3275
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 -99.99999
sl@0
  3276
} {abc: 3 2 (-1.00e+02) :xyz}
sl@0
  3277
do_test printf-2.8.9.9 {
sl@0
  3278
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 -99.99999
sl@0
  3279
} {abc: 3 2 (-1e+02) :xyz}
sl@0
  3280
do_test printf-2.8.10.1 {
sl@0
  3281
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 3.14e+9
sl@0
  3282
} {abc: (3140000000.00) :xyz}
sl@0
  3283
do_test printf-2.8.10.2 {
sl@0
  3284
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 3.14e+9
sl@0
  3285
} {abc: (3.14e+09) :xyz}
sl@0
  3286
do_test printf-2.8.10.3 {
sl@0
  3287
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 3.14e+9
sl@0
  3288
} {abc: (3.1e+09) :xyz}
sl@0
  3289
do_test printf-2.8.10.4 {
sl@0
  3290
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 3.14e+9
sl@0
  3291
} {abc: 3 2 (3.14e+09) :xyz}
sl@0
  3292
do_test printf-2.8.10.5 {
sl@0
  3293
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 3.14e+9
sl@0
  3294
} {abc: 3 2 (3.14000e+09) :xyz}
sl@0
  3295
do_test printf-2.8.10.6 {
sl@0
  3296
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 3.14e+9
sl@0
  3297
} {abc: 3 2 (003.14e+09) :xyz}
sl@0
  3298
do_test printf-2.8.10.7 {
sl@0
  3299
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 3.14e+9
sl@0
  3300
} {abc: 3 2 (3140000000.00) :xyz}
sl@0
  3301
do_test printf-2.8.10.8 {
sl@0
  3302
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 3.14e+9
sl@0
  3303
} {abc: 3 2 (3.14e+09) :xyz}
sl@0
  3304
do_test printf-2.8.10.9 {
sl@0
  3305
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 3.14e+9
sl@0
  3306
} {abc: 3 2 (3.1e+09) :xyz}
sl@0
  3307
do_test printf-2.8.11.2 {
sl@0
  3308
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 -4.72732e+88
sl@0
  3309
} {abc: (-4.73e+88) :xyz}
sl@0
  3310
do_test printf-2.8.11.3 {
sl@0
  3311
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 -4.72732e+88
sl@0
  3312
} {abc: (-4.7e+88) :xyz}
sl@0
  3313
do_test printf-2.8.11.4 {
sl@0
  3314
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 -4.72732e+88
sl@0
  3315
} {abc: 3 2 (-4.72732e+88) :xyz}
sl@0
  3316
do_test printf-2.8.11.5 {
sl@0
  3317
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 -4.72732e+88
sl@0
  3318
} {abc: 3 2 (-4.72732e+88) :xyz}
sl@0
  3319
do_test printf-2.8.11.6 {
sl@0
  3320
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 -4.72732e+88
sl@0
  3321
} {abc: 3 2 (-4.72732e+88) :xyz}
sl@0
  3322
do_test printf-2.8.11.8 {
sl@0
  3323
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 -4.72732e+88
sl@0
  3324
} {abc: 3 2 (-4.73e+88) :xyz}
sl@0
  3325
do_test printf-2.8.11.9 {
sl@0
  3326
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 -4.72732e+88
sl@0
  3327
} {abc: 3 2 (-4.7e+88) :xyz}
sl@0
  3328
do_test printf-2.8.12.2 {
sl@0
  3329
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 9.87991e+143
sl@0
  3330
} {abc: (9.88e+143) :xyz}
sl@0
  3331
do_test printf-2.8.12.3 {
sl@0
  3332
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 9.87991e+143
sl@0
  3333
} {abc: (9.9e+143) :xyz}
sl@0
  3334
do_test printf-2.8.12.4 {
sl@0
  3335
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 9.87991e+143
sl@0
  3336
} {abc: 3 2 (9.87991e+143) :xyz}
sl@0
  3337
do_test printf-2.8.12.5 {
sl@0
  3338
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 9.87991e+143
sl@0
  3339
} {abc: 3 2 (9.87991e+143) :xyz}
sl@0
  3340
do_test printf-2.8.12.6 {
sl@0
  3341
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 9.87991e+143
sl@0
  3342
} {abc: 3 2 (9.87991e+143) :xyz}
sl@0
  3343
do_test printf-2.8.12.8 {
sl@0
  3344
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 9.87991e+143
sl@0
  3345
} {abc: 3 2 (9.88e+143) :xyz}
sl@0
  3346
do_test printf-2.8.12.9 {
sl@0
  3347
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 9.87991e+143
sl@0
  3348
} {abc: 3 2 (9.9e+143) :xyz}
sl@0
  3349
do_test printf-2.8.13.1 {
sl@0
  3350
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 -6.287291e-9
sl@0
  3351
} {abc: (-0.00) :xyz}
sl@0
  3352
do_test printf-2.8.13.2 {
sl@0
  3353
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 -6.287291e-9
sl@0
  3354
} {abc: (-6.29e-09) :xyz}
sl@0
  3355
do_test printf-2.8.13.3 {
sl@0
  3356
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 -6.287291e-9
sl@0
  3357
} {abc: (-6.3e-09) :xyz}
sl@0
  3358
do_test printf-2.8.13.4 {
sl@0
  3359
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 -6.287291e-9
sl@0
  3360
} {abc: 3 2 (-6.28729e-09) :xyz}
sl@0
  3361
do_test printf-2.8.13.5 {
sl@0
  3362
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 -6.287291e-9
sl@0
  3363
} {abc: 3 2 (-6.28729e-09) :xyz}
sl@0
  3364
do_test printf-2.8.13.6 {
sl@0
  3365
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 -6.287291e-9
sl@0
  3366
} {abc: 3 2 (-6.28729e-09) :xyz}
sl@0
  3367
do_test printf-2.8.13.7 {
sl@0
  3368
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 -6.287291e-9
sl@0
  3369
} {abc: 3 2 (-0.00) :xyz}
sl@0
  3370
do_test printf-2.8.13.8 {
sl@0
  3371
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 -6.287291e-9
sl@0
  3372
} {abc: 3 2 (-6.29e-09) :xyz}
sl@0
  3373
do_test printf-2.8.13.9 {
sl@0
  3374
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 -6.287291e-9
sl@0
  3375
} {abc: 3 2 (-6.3e-09) :xyz}
sl@0
  3376
do_test printf-2.8.14.1 {
sl@0
  3377
  sqlite3_mprintf_double {abc: (%*.*f) :xyz} 3 2 3.38826392e-110
sl@0
  3378
} {abc: (0.00) :xyz}
sl@0
  3379
do_test printf-2.8.14.2 {
sl@0
  3380
  sqlite3_mprintf_double {abc: (%*.*e) :xyz} 3 2 3.38826392e-110
sl@0
  3381
} {abc: (3.39e-110) :xyz}
sl@0
  3382
do_test printf-2.8.14.3 {
sl@0
  3383
  sqlite3_mprintf_double {abc: (%*.*g) :xyz} 3 2 3.38826392e-110
sl@0
  3384
} {abc: (3.4e-110) :xyz}
sl@0
  3385
do_test printf-2.8.14.4 {
sl@0
  3386
  sqlite3_mprintf_double {abc: %d %d (%g) :xyz} 3 2 3.38826392e-110
sl@0
  3387
} {abc: 3 2 (3.38826e-110) :xyz}
sl@0
  3388
do_test printf-2.8.14.5 {
sl@0
  3389
  sqlite3_mprintf_double {abc: %d %d (%#g) :xyz} 3 2 3.38826392e-110
sl@0
  3390
} {abc: 3 2 (3.38826e-110) :xyz}
sl@0
  3391
do_test printf-2.8.14.6 {
sl@0
  3392
  sqlite3_mprintf_double {abc: %d %d (%010g) :xyz} 3 2 3.38826392e-110
sl@0
  3393
} {abc: 3 2 (3.38826e-110) :xyz}
sl@0
  3394
do_test printf-2.8.14.7 {
sl@0
  3395
  sqlite3_mprintf_double {abc: %d %d (%3.2f) :xyz} 3 2 3.38826392e-110
sl@0
  3396
} {abc: 3 2 (0.00) :xyz}
sl@0
  3397
do_test printf-2.8.14.8 {
sl@0
  3398
  sqlite3_mprintf_double {abc: %d %d (%3.2e) :xyz} 3 2 3.38826392e-110
sl@0
  3399
} {abc: 3 2 (3.39e-110) :xyz}
sl@0
  3400
do_test printf-2.8.14.9 {
sl@0
  3401
  sqlite3_mprintf_double {abc: %d %d (%3.2g) :xyz} 3 2 3.38826392e-110
sl@0
  3402
} {abc: 3 2 (3.4e-110) :xyz}
sl@0
  3403
do_test printf-2.8.15.1 {
sl@0
  3404
  sqlite3_mprintf_double {abc: (% *.*f) :xyz} 3 2 3.38826392e-110
sl@0
  3405
} {abc: ( 0.00) :xyz}
sl@0
  3406
do_test printf-2.8.15.2 {
sl@0
  3407
  sqlite3_mprintf_double {abc: (% *.*e) :xyz} 3 2 3.38826392e-110
sl@0
  3408
} {abc: ( 3.39e-110) :xyz}
sl@0
  3409
do_test printf-2.8.15.3 {
sl@0
  3410
  sqlite3_mprintf_double {abc: (% *.*g) :xyz} 3 2 3.38826392e-110
sl@0
  3411
} {abc: ( 3.4e-110) :xyz}
sl@0
  3412
do_test printf-2.8.15.4 {
sl@0
  3413
  sqlite3_mprintf_double {abc: %d %d (% g) :xyz} 3 2 3.38826392e-110
sl@0
  3414
} {abc: 3 2 ( 3.38826e-110) :xyz}
sl@0
  3415
do_test printf-2.8.15.5 {
sl@0
  3416
  sqlite3_mprintf_double {abc: %d %d (% #g) :xyz} 3 2 3.38826392e-110
sl@0
  3417
} {abc: 3 2 ( 3.38826e-110) :xyz}
sl@0
  3418
do_test printf-2.8.15.6 {
sl@0
  3419
  sqlite3_mprintf_double {abc: %d %d (%0 10g) :xyz} 3 2 3.38826392e-110
sl@0
  3420
} {abc: 3 2 ( 3.38826e-110) :xyz}
sl@0
  3421
do_test printf-2.8.15.7 {
sl@0
  3422
  sqlite3_mprintf_double {abc: %d %d (% 3.2f) :xyz} 3 2 3.38826392e-110
sl@0
  3423
} {abc: 3 2 ( 0.00) :xyz}
sl@0
  3424
do_test printf-2.8.15.8 {
sl@0
  3425
  sqlite3_mprintf_double {abc: %d %d (% 3.2e) :xyz} 3 2 3.38826392e-110
sl@0
  3426
} {abc: 3 2 ( 3.39e-110) :xyz}
sl@0
  3427
do_test printf-2.8.15.9 {
sl@0
  3428
  sqlite3_mprintf_double {abc: %d %d (% 3.2g) :xyz} 3 2 3.38826392e-110
sl@0
  3429
} {abc: 3 2 ( 3.4e-110) :xyz}
sl@0
  3430
sl@0
  3431
do_test printf-2.9.1 {
sl@0
  3432
  sqlite3_mprintf_double {abc: %d %d (%5.0g) :xyz} 0 0 1.234
sl@0
  3433
} {abc: 0 0 (    1) :xyz}
sl@0
  3434
do_test printf-2.9.2 {
sl@0
  3435
  sqlite3_mprintf_double {abc: %d %d (%+5.0g) :xyz} 0 0 1.234
sl@0
  3436
} {abc: 0 0 (   +1) :xyz}
sl@0
  3437
do_test printf-2.9.3 {
sl@0
  3438
  sqlite3_mprintf_double {abc: %d %d (%+-5.0g) :xyz} 0 0 1.234
sl@0
  3439
} {abc: 0 0 (+1   ) :xyz}
sl@0
  3440
sl@0
  3441
do_test printf-2.10.1 {
sl@0
  3442
  sqlite3_mprintf_double {abc: %d %d (%-010.5f) :xyz} 0 0 1.234
sl@0
  3443
} {abc: 0 0 (1.23400   ) :xyz}
sl@0
  3444
do_test printf-2.10.2 {
sl@0
  3445
  sqlite3_mprintf_double {abc: %d %d (%010.5f) :xyz} 0 0 1.234
sl@0
  3446
} {abc: 0 0 (0001.23400) :xyz}
sl@0
  3447
do_test printf-2.10.3 {
sl@0
  3448
  sqlite3_mprintf_double {abc: %d %d (%+010.5f) :xyz} 0 0 1.234
sl@0
  3449
} {abc: 0 0 (+001.23400) :xyz}
sl@0
  3450
sl@0
  3451
do_test printf-3.1 {
sl@0
  3452
  sqlite3_mprintf_str {A String: (%*.*s)} 10 10 {This is the string}
sl@0
  3453
} [format {A String: (%*.*s)} 10 10 {This is the string}]
sl@0
  3454
do_test printf-3.2 {
sl@0
  3455
  sqlite3_mprintf_str {A String: (%*.*s)} 10 5 {This is the string}
sl@0
  3456
} [format {A String: (%*.*s)} 10 5 {This is the string}]
sl@0
  3457
do_test printf-3.3 {
sl@0
  3458
  sqlite3_mprintf_str {A String: (%*.*s)} -10 5 {This is the string}
sl@0
  3459
} [format {A String: (%*.*s)} -10 5 {This is the string}]
sl@0
  3460
do_test printf-3.4 {
sl@0
  3461
  sqlite3_mprintf_str {%d %d A String: (%s)} 1 2 {This is the string}
sl@0
  3462
} [format {%d %d A String: (%s)} 1 2 {This is the string}]
sl@0
  3463
do_test printf-3.5 {
sl@0
  3464
  sqlite3_mprintf_str {%d %d A String: (%30s)} 1 2 {This is the string}
sl@0
  3465
} [format {%d %d A String: (%30s)} 1 2 {This is the string}]
sl@0
  3466
do_test printf-3.6 {
sl@0
  3467
  sqlite3_mprintf_str {%d %d A String: (%-30s)} 1 2 {This is the string}
sl@0
  3468
} [format {%d %d A String: (%-30s)} 1 2 {This is the string}]
sl@0
  3469
do_test snprintf-3.11 {
sl@0
  3470
  sqlite3_snprintf_str 2 {x%d %d %s} 10 10 {This is the string}
sl@0
  3471
} {x}
sl@0
  3472
do_test snprintf-3.12 {
sl@0
  3473
  sqlite3_snprintf_str 3 {x%d %d %s} 10 10 {This is the string}
sl@0
  3474
} {x1}
sl@0
  3475
do_test snprintf-3.13 {
sl@0
  3476
  sqlite3_snprintf_str 4 {x%d %d %s} 10 10 {This is the string}
sl@0
  3477
} {x10}
sl@0
  3478
do_test snprintf-3.14 {
sl@0
  3479
  sqlite3_snprintf_str 5 {x%d %d %s} 10 10 {This is the string}
sl@0
  3480
} {x10 }
sl@0
  3481
do_test snprintf-3.15 {
sl@0
  3482
  sqlite3_snprintf_str 6 {x%d %d %s} 10 10 {This is the string}
sl@0
  3483
} {x10 1}
sl@0
  3484
do_test snprintf-3.16 {
sl@0
  3485
  sqlite3_snprintf_str 7 {x%d %d %s} 10 10 {This is the string}
sl@0
  3486
} {x10 10}
sl@0
  3487
do_test snprintf-3.17 {
sl@0
  3488
  sqlite3_snprintf_str 8 {x%d %d %s} 10 10 {This is the string}
sl@0
  3489
} {x10 10 }
sl@0
  3490
do_test snprintf-3.18 {
sl@0
  3491
  sqlite3_snprintf_str 9 {x%d %d %s} 10 10 {This is the string}
sl@0
  3492
} {x10 10 T}
sl@0
  3493
do_test snprintf-3.19 {
sl@0
  3494
  sqlite3_snprintf_str 100 {x%d %d %s} 10 10 {This is the string}
sl@0
  3495
} {x10 10 This is the string}
sl@0
  3496
sl@0
  3497
do_test printf-4.1 {
sl@0
  3498
  sqlite3_mprintf_str {%d %d A quoted string: '%q'} 1 2 {Hi Y'all}
sl@0
  3499
} {1 2 A quoted string: 'Hi Y''all'}
sl@0
  3500
do_test printf-4.2 {
sl@0
  3501
  sqlite3_mprintf_str {%d %d A NULL pointer in %%q: '%q'} 1 2
sl@0
  3502
} {1 2 A NULL pointer in %q: '(NULL)'}
sl@0
  3503
do_test printf-4.3 {
sl@0
  3504
  sqlite3_mprintf_str {%d %d A quoted string: %Q} 1 2 {Hi Y'all}
sl@0
  3505
} {1 2 A quoted string: 'Hi Y''all'}
sl@0
  3506
do_test printf-4.4 {
sl@0
  3507
  sqlite3_mprintf_str {%d %d A NULL pointer in %%Q: %Q} 1 2
sl@0
  3508
} {1 2 A NULL pointer in %Q: NULL}
sl@0
  3509
sl@0
  3510
do_test printf-5.1 {
sl@0
  3511
  set x [sqlite3_mprintf_str {%d %d %100000s} 0 0 {Hello}]
sl@0
  3512
  string length $x
sl@0
  3513
} {344}
sl@0
  3514
do_test printf-5.2 {
sl@0
  3515
  sqlite3_mprintf_str {%d %d (%-10.10s) %} -9 -10 {HelloHelloHello}
sl@0
  3516
} {-9 -10 (HelloHello) %}
sl@0
  3517
sl@0
  3518
do_test printf-6.1 {
sl@0
  3519
  sqlite3_mprintf_z_test , one two three four five six
sl@0
  3520
} {,one,two,three,four,five,six}
sl@0
  3521
sl@0
  3522
sl@0
  3523
do_test printf-7.1 {
sl@0
  3524
  sqlite3_mprintf_scaled {A double: %g} 1.0e307 1.0
sl@0
  3525
} {A double: 1e+307}
sl@0
  3526
do_test printf-7.2 {
sl@0
  3527
  sqlite3_mprintf_scaled {A double: %g} 1.0e307 10.0
sl@0
  3528
} {A double: 1e+308}
sl@0
  3529
do_test printf-7.3 {
sl@0
  3530
  sqlite3_mprintf_scaled {A double: %g} 1.0e307 100.0
sl@0
  3531
} {A double: Inf}
sl@0
  3532
do_test printf-7.4 {
sl@0
  3533
  sqlite3_mprintf_scaled {A double: %g} -1.0e307 100.0
sl@0
  3534
} {A double: -Inf}
sl@0
  3535
do_test printf-7.5 {
sl@0
  3536
  sqlite3_mprintf_scaled {A double: %+g} 1.0e307 100.0
sl@0
  3537
} {A double: +Inf}
sl@0
  3538
sl@0
  3539
do_test printf-8.1 {
sl@0
  3540
  sqlite3_mprintf_int {%u %u %u} 0x7fffffff 0x80000000 0xffffffff
sl@0
  3541
} {2147483647 2147483648 4294967295}
sl@0
  3542
do_test printf-8.2 {
sl@0
  3543
  sqlite3_mprintf_int {%lu %lu %lu} 0x7fffffff 0x80000000 0xffffffff
sl@0
  3544
} {2147483647 2147483648 4294967295}
sl@0
  3545
do_test printf-8.3 {
sl@0
  3546
  sqlite3_mprintf_int64 {%llu %llu %llu} 2147483647 2147483648 4294967296
sl@0
  3547
} {2147483647 2147483648 4294967296}
sl@0
  3548
do_test printf-8.4 {
sl@0
  3549
  sqlite3_mprintf_int64 {%lld %lld %lld} 2147483647 2147483648 4294967296
sl@0
  3550
} {2147483647 2147483648 4294967296}
sl@0
  3551
do_test printf-8.5 {
sl@0
  3552
  sqlite3_mprintf_int64 {%llx %llx %llx} 2147483647 2147483648 4294967296
sl@0
  3553
} {7fffffff 80000000 100000000}
sl@0
  3554
do_test printf-8.6 {
sl@0
  3555
  sqlite3_mprintf_int64 {%llx %llo %lld} -1 -1 -1
sl@0
  3556
} {ffffffffffffffff 1777777777777777777777 -1}
sl@0
  3557
do_test printf-8.7 {
sl@0
  3558
  sqlite3_mprintf_int64 {%llx %llx %llx} +2147483647 +2147483648 +4294967296
sl@0
  3559
} {7fffffff 80000000 100000000}
sl@0
  3560
sl@0
  3561
do_test printf-9.1 {
sl@0
  3562
  sqlite3_mprintf_int {%*.*c} 4 4 65
sl@0
  3563
} {AAAA}
sl@0
  3564
do_test printf-9.2 {
sl@0
  3565
  sqlite3_mprintf_int {%*.*c} -4 1 66
sl@0
  3566
} {B   }
sl@0
  3567
do_test printf-9.3 {
sl@0
  3568
  sqlite3_mprintf_int {%*.*c} 4 1 67
sl@0
  3569
} {   C}
sl@0
  3570
do_test printf-9.4 {
sl@0
  3571
  sqlite3_mprintf_int {%d %d %c} 4 1 67
sl@0
  3572
} {4 1 C}
sl@0
  3573
set ten {          }
sl@0
  3574
set fifty $ten$ten$ten$ten$ten
sl@0
  3575
do_test printf-9.5 {
sl@0
  3576
  sqlite3_mprintf_int {%d %*c} 1 -201 67
sl@0
  3577
} "1 C$fifty$fifty$fifty$fifty"
sl@0
  3578
do_test printf-9.6 {
sl@0
  3579
  sqlite3_mprintf_int {hi%12345.12346yhello} 0 0 0
sl@0
  3580
} {hi}
sl@0
  3581
sl@0
  3582
# Ticket #812
sl@0
  3583
#
sl@0
  3584
do_test printf-10.1 {
sl@0
  3585
  sqlite3_mprintf_stronly %s {}
sl@0
  3586
} {}
sl@0
  3587
sl@0
  3588
# Ticket #831
sl@0
  3589
#
sl@0
  3590
do_test printf-10.2 {
sl@0
  3591
  sqlite3_mprintf_stronly %q {}
sl@0
  3592
} {}
sl@0
  3593
sl@0
  3594
# Ticket #1340:  Test for loss of precision on large positive exponents
sl@0
  3595
#
sl@0
  3596
do_test printf-10.3 {
sl@0
  3597
  sqlite3_mprintf_double {%d %d %f} 1 1 1e300
sl@0
  3598
} {1 1 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000}
sl@0
  3599
sl@0
  3600
# The non-standard '!' flag on a 'g' conversion forces a decimal point
sl@0
  3601
# and at least one digit on either side of the decimal point.
sl@0
  3602
#
sl@0
  3603
do_test printf-11.1 {
sl@0
  3604
  sqlite3_mprintf_double {%d %d %!g} 1 1 1
sl@0
  3605
} {1 1 1.0}
sl@0
  3606
do_test printf-11.2 {
sl@0
  3607
  sqlite3_mprintf_double {%d %d %!g} 1 1 123
sl@0
  3608
} {1 1 123.0}
sl@0
  3609
do_test printf-11.3 {
sl@0
  3610
  sqlite3_mprintf_double {%d %d %!g} 1 1 12.3
sl@0
  3611
} {1 1 12.3}
sl@0
  3612
do_test printf-11.4 {
sl@0
  3613
  sqlite3_mprintf_double {%d %d %!g} 1 1 0.123
sl@0
  3614
} {1 1 0.123}
sl@0
  3615
do_test printf-11.5 {
sl@0
  3616
  sqlite3_mprintf_double {%d %d %!.15g} 1 1 1
sl@0
  3617
} {1 1 1.0}
sl@0
  3618
do_test printf-11.6 {
sl@0
  3619
  sqlite3_mprintf_double {%d %d %!.15g} 1 1 1e10
sl@0
  3620
} {1 1 10000000000.0}
sl@0
  3621
do_test printf-11.7 {
sl@0
  3622
  sqlite3_mprintf_double {%d %d %!.15g} 1 1 1e300
sl@0
  3623
} {1 1 1.0e+300}
sl@0
  3624
sl@0
  3625
# Additional tests for coverage
sl@0
  3626
#
sl@0
  3627
do_test printf-12.1 {
sl@0
  3628
  sqlite3_mprintf_double {%d %d %.2000g} 1 1 1.0
sl@0
  3629
} {1 1 1}
sl@0
  3630
sl@0
  3631
# Floating point boundary cases
sl@0
  3632
#
sl@0
  3633
do_test printf-13.1 {
sl@0
  3634
  sqlite3_mprintf_hexdouble %.20f 4024000000000000
sl@0
  3635
} {10.00000000000000000000}
sl@0
  3636
do_test printf-13.2 {
sl@0
  3637
  sqlite3_mprintf_hexdouble %.20f 4197d78400000000
sl@0
  3638
} {100000000.00000000000000000000}
sl@0
  3639
do_test printf-13.3 {
sl@0
  3640
  sqlite3_mprintf_hexdouble %.20f 4693b8b5b5056e17
sl@0
  3641
} {100000000000000000000000000000000.00000000000000000000}
sl@0
  3642
do_test printf-13.4 {
sl@0
  3643
  sqlite3_mprintf_hexdouble %.20f 7ff0000000000000
sl@0
  3644
} {Inf}
sl@0
  3645
do_test printf-13.5 {
sl@0
  3646
  sqlite3_mprintf_hexdouble %.20f fff0000000000000
sl@0
  3647
} {-Inf}
sl@0
  3648
do_test printf-13.6 {
sl@0
  3649
  sqlite3_mprintf_hexdouble %.20f fff8000000000000
sl@0
  3650
} {NaN}
sl@0
  3651
sl@0
  3652
do_test printf-14.1 {
sl@0
  3653
  sqlite3_mprintf_str {abc-%y-123} 0 0 {not used}
sl@0
  3654
} {abc-}
sl@0
  3655
do_test printf-14.2 {
sl@0
  3656
  sqlite3_mprintf_n_test {xyzzy}
sl@0
  3657
} 5
sl@0
  3658
do_test printf-14.3 {
sl@0
  3659
  sqlite3_mprintf_str {abc-%T-123} 0 0 {not used}
sl@0
  3660
} {abc-}
sl@0
  3661
do_test printf-14.4 {
sl@0
  3662
  sqlite3_mprintf_str {abc-%#} 0 0 {not used}
sl@0
  3663
} {abc-}
sl@0
  3664
do_test printf-14.5 {
sl@0
  3665
  sqlite3_mprintf_str {abc-%*.*s-xyz} 10 -10 {a_very_long_string}
sl@0
  3666
} {abc-a_very_lon-xyz}
sl@0
  3667
do_test printf-14.6 {
sl@0
  3668
  sqlite3_mprintf_str {abc-%5.10/} 0 0 {not used}
sl@0
  3669
} {abc-}
sl@0
  3670
do_test printf-14.7 {
sl@0
  3671
  sqlite3_mprintf_str {abc-%05.5d} 123 0 {not used}
sl@0
  3672
} {abc-00123}
sl@0
  3673
do_test printf-14.8 {
sl@0
  3674
  sqlite3_mprintf_str {abc-%05.5d} 1234567 0 {not used}
sl@0
  3675
} {abc-1234567}
sl@0
  3676
sl@0
  3677
for {set i 2} {$i<200} {incr i} {
sl@0
  3678
  set res [string repeat { } [expr {$i-1}]]x
sl@0
  3679
  do_test printf-14.90.$i "
sl@0
  3680
    sqlite3_mprintf_str {%*.*s} $i 500 x
sl@0
  3681
  " $res
sl@0
  3682
}
sl@0
  3683
sl@0
  3684
do_test printf-15.1 {
sl@0
  3685
  sqlite3_snprintf_int 5 {12345} 0
sl@0
  3686
} {1234}
sl@0
  3687
do_test printf-15.2 {
sl@0
  3688
  sqlite3_snprintf_int 5 {} 0
sl@0
  3689
} {}
sl@0
  3690
do_test printf-15.3 {
sl@0
  3691
  sqlite3_snprintf_int 0 {} 0
sl@0
  3692
} {abcdefghijklmnopqrstuvwxyz}
sl@0
  3693
sl@0
  3694
# Now test malloc() failure within a sqlite3_mprintf():
sl@0
  3695
#
sl@0
  3696
ifcapable memdebug {
sl@0
  3697
  foreach var {a b c d} {
sl@0
  3698
    set $var [string repeat $var 400]
sl@0
  3699
  }
sl@0
  3700
  set str1 "[string repeat A 360]%d%d%s"
sl@0
  3701
  set str2 [string repeat B 5000]
sl@0
  3702
  set zSuccess "[string repeat A 360]11[string repeat B 5000]"
sl@0
  3703
  foreach ::iRepeat {0 1} {
sl@0
  3704
    set nTestNum 1
sl@0
  3705
    while {1} {
sl@0
  3706
      sqlite3_memdebug_fail $nTestNum -repeat $::iRepeat
sl@0
  3707
      set z [sqlite3_mprintf_str $str1 1 1 $str2]
sl@0
  3708
      set nFail [sqlite3_memdebug_fail -1 -benign nBenign]
sl@0
  3709
      do_test printf-malloc-$::iRepeat.$nTestNum {
sl@0
  3710
        expr {($nFail>0 && $z eq "") || ($nFail==$nBenign && $z eq $zSuccess)}
sl@0
  3711
      } {1}
sl@0
  3712
      if {$nFail == 0} break
sl@0
  3713
      incr nTestNum
sl@0
  3714
    }
sl@0
  3715
  }
sl@0
  3716
}
sl@0
  3717
sl@0
  3718
finish_test