Show more information if wxString::ToLong() tests fail

Make it possible to see which test failed if one did.
This commit is contained in:
Vadim Zeitlin 2023-04-05 15:59:36 +02:00
parent 6d92131fc7
commit 9b1d031a1b

View file

@ -668,6 +668,10 @@ TEST_CASE("StringToLong", "[wxString]")
if ( ld.flags & (Number_LongLong | Number_Unsigned) )
continue;
INFO("Checking test case #" << (n + 1) << ": "
"\"" << wxString{ld.str} << "\" "
"(flags=" << ld.flags << ", base=" << ld.base << ")");
// NOTE: unless you're using some exotic locale, ToCLong and ToLong
// should behave the same for our test data set:
@ -702,6 +706,10 @@ TEST_CASE("StringToULong", "[wxString]")
if ( ld.flags & (Number_LongLong | Number_Signed) )
continue;
INFO("Checking test case #" << (n + 1) << ": "
"\"" << wxString{ld.str} << "\" "
"(flags=" << ld.flags << ", base=" << ld.base << ")");
// NOTE: unless you're using some exotic locale, ToCLong and ToLong
// should behave the same for our test data set: