mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Remove dummy PRIszX macros for formatting
Size specifiers are no longer needed now that we use typesafe tinyformat
for string formatting, instead of the system's sprintf.
No functional changes.
This continues the work in #3735.
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
Rebased-From: 783b182
This commit is contained in:
parent
26ceac4acf
commit
72ae546dd4
10 changed files with 28 additions and 40 deletions
|
|
@ -321,15 +321,15 @@ BOOST_AUTO_TEST_CASE(strprintf_numbers)
|
|||
|
||||
size_t st = 12345678; /* unsigned size_t test value */
|
||||
ssize_t sst = -12345678; /* signed size_t test value */
|
||||
BOOST_CHECK(strprintf("%s %"PRIszd" %s", B, sst, E) == B" -12345678 "E);
|
||||
BOOST_CHECK(strprintf("%s %"PRIszu" %s", B, st, E) == B" 12345678 "E);
|
||||
BOOST_CHECK(strprintf("%s %"PRIszx" %s", B, st, E) == B" bc614e "E);
|
||||
BOOST_CHECK(strprintf("%s %d %s", B, sst, E) == B" -12345678 "E);
|
||||
BOOST_CHECK(strprintf("%s %u %s", B, st, E) == B" 12345678 "E);
|
||||
BOOST_CHECK(strprintf("%s %x %s", B, st, E) == B" bc614e "E);
|
||||
|
||||
ptrdiff_t pt = 87654321; /* positive ptrdiff_t test value */
|
||||
ptrdiff_t spt = -87654321; /* negative ptrdiff_t test value */
|
||||
BOOST_CHECK(strprintf("%s %"PRIpdd" %s", B, spt, E) == B" -87654321 "E);
|
||||
BOOST_CHECK(strprintf("%s %"PRIpdu" %s", B, pt, E) == B" 87654321 "E);
|
||||
BOOST_CHECK(strprintf("%s %"PRIpdx" %s", B, pt, E) == B" 5397fb1 "E);
|
||||
BOOST_CHECK(strprintf("%s %d %s", B, spt, E) == B" -87654321 "E);
|
||||
BOOST_CHECK(strprintf("%s %u %s", B, pt, E) == B" 87654321 "E);
|
||||
BOOST_CHECK(strprintf("%s %x %s", B, pt, E) == B" 5397fb1 "E);
|
||||
}
|
||||
#undef B
|
||||
#undef E
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue