mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
c++11: These look like user-defined literals.
Add a space to keep the compiler happy
This commit is contained in:
parent
5a6155ccfa
commit
7f991e364e
@ -282,21 +282,21 @@ BOOST_AUTO_TEST_CASE(strprintf_numbers)
|
||||
{
|
||||
int64_t s64t = -9223372036854775807LL; /* signed 64 bit test value */
|
||||
uint64_t u64t = 18446744073709551615ULL; /* unsigned 64 bit test value */
|
||||
BOOST_CHECK(strprintf("%s %d %s", B, s64t, E) == B" -9223372036854775807 "E);
|
||||
BOOST_CHECK(strprintf("%s %u %s", B, u64t, E) == B" 18446744073709551615 "E);
|
||||
BOOST_CHECK(strprintf("%s %x %s", B, u64t, E) == B" ffffffffffffffff "E);
|
||||
BOOST_CHECK(strprintf("%s %d %s", B, s64t, E) == B" -9223372036854775807 " E);
|
||||
BOOST_CHECK(strprintf("%s %u %s", B, u64t, E) == B" 18446744073709551615 " E);
|
||||
BOOST_CHECK(strprintf("%s %x %s", B, u64t, E) == B" ffffffffffffffff " E);
|
||||
|
||||
size_t st = 12345678; /* unsigned size_t test value */
|
||||
ssize_t sst = -12345678; /* signed size_t test value */
|
||||
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);
|
||||
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 %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);
|
||||
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…
Reference in New Issue
Block a user