]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/scopeguard/scopeguardtest.cpp
Don't use wxWindow::ClearBackground() in the image sample and explain why.
[wxWidgets.git] / tests / scopeguard / scopeguardtest.cpp
index 24c19fd9812ef73a72efb4259e34b61815b34823..7b74824c37fdc61cf250397ff110cfc279e2ccd0 100644 (file)
@@ -21,6 +21,7 @@
     #pragma hdrstop
 #endif
 
+#include "wx/string.h"
 #include "wx/scopeguard.h"
 
 // ----------------------------------------------------------------------------
@@ -232,9 +233,9 @@ void ScopeGuardTestCase::BlockExitSetVar()
     {
         wxON_BLOCK_EXIT_SET(s, "bye");
 
-        WX_ASSERT_STR_EQUAL( "hi", s );
+        CPPUNIT_ASSERT_EQUAL( "hi", s );
     }
-    WX_ASSERT_STR_EQUAL( "bye", s );
+    CPPUNIT_ASSERT_EQUAL( "bye", s );
 
     ScopeGuardTestCase *p = this;
     {