Show more information if wxString::ToLong() tests fail
Make it possible to see which test failed if one did.
This commit is contained in:
parent
6d92131fc7
commit
9b1d031a1b
1 changed files with 8 additions and 0 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue