mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-22 14:20:35 +08:00
Show more information if wxString::ToLong() tests fail
Make it possible to see which test failed if one did.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user