Show the index of the font and the face name which was invalid.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62707
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
const wxString facename = font[i].GetFaceName();
if ( !facename.empty() )
const wxString facename = font[i].GetFaceName();
if ( !facename.empty() )
- CPPUNIT_ASSERT( wxFontEnumerator::IsValidFacename(facename) );
+ {
+ WX_ASSERT_MESSAGE(
+ ("font #%u: facename \"%s\" is invalid", i, facename),
+ wxFontEnumerator::IsValidFacename(facename)
+ );
+ }