diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 14:07:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 14:07:37 +0000 |
commit | de1caa20c41f730e54fb6974ba7821fe48816e40 (patch) | |
tree | 4702bdab12e2b6f51bef05af9f8d8854d2e1b7e8 /test/printf.test | |
parent | Adding upstream version 3.45.1. (diff) | |
download | sqlite3-de1caa20c41f730e54fb6974ba7821fe48816e40.tar.xz sqlite3-de1caa20c41f730e54fb6974ba7821fe48816e40.zip |
Adding upstream version 3.45.2.upstream/3.45.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/printf.test')
-rw-r--r-- | test/printf.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/printf.test b/test/printf.test index 6d4ad71..cc439e6 100644 --- a/test/printf.test +++ b/test/printf.test @@ -3833,4 +3833,21 @@ do_execsql_test printf-18.1 { SELECT length( format('%,.249f', -5.0e-300) ); } {252} +# 2024-02-16 +# https://sqlite.org/forum/info/393708f4a8 +# +# The problem introduced by on 2023-07-03 by +# https://sqlite.org/src/info/32befb224b254639 +# +do_execsql_test printf-19.1 { + SELECT format('%0.0f %0.0g %0.0g', 0.9, 0.09, 1.9); +} {{1 0.09 2}} +do_execsql_test printf-19.2 { + SELECT format('%0.0f %#0.0f',0.0, 0.0); +} {{0 0.}} +do_execsql_test printf-19.3 { + SELECT format('%,.0f %,.0f',12345e+10, 12345e+11); +} {{123,450,000,000,000 1,234,500,000,000,000}} + + finish_test |