X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4761b4c08e6272c69bd242b3323ab47dbbc8902..af58844636f51ca9c9350c66de3baf427d3e8646:/tests/cmdline/cmdlinetest.cpp?ds=sidebyside diff --git a/tests/cmdline/cmdlinetest.cpp b/tests/cmdline/cmdlinetest.cpp index d1f8ec7c4e..04e5c2ac83 100644 --- a/tests/cmdline/cmdlinetest.cpp +++ b/tests/cmdline/cmdlinetest.cpp @@ -96,6 +96,7 @@ void CmdLineTestCase::ConvertStringTestCase() WX_ASSERT_ARGS_EQUAL( "1|2 3|4", "1 \"2 3\" 4" ); // check for (broken) Windows semantics: backslash doesn't escape spaces + WX_ASSERT_DOS_ARGS_EQUAL( "\\\\foo\\\\|/bar", "\"\\\\foo\\\\\" /bar" ); WX_ASSERT_DOS_ARGS_EQUAL( "foo|bar\\|baz", "foo bar\\ baz" ); WX_ASSERT_DOS_ARGS_EQUAL( "foo|bar\\\"baz", "foo \"bar\\\"baz\"" ); @@ -158,9 +159,9 @@ void CmdLineTestCase::Usage() Line_Max }; - WX_ASSERT_SIZET_EQUAL( Line_Max, usageLines.size() ); - WX_ASSERT_STR_EQUAL("Verbosity options", usageLines[Line_Text_Verbosity]); - WX_ASSERT_STR_EQUAL("", usageLines[Line_Text_Dummy1]); - WX_ASSERT_STR_EQUAL("Even more usage text", usageLines[Line_Text_Dummy2]); - WX_ASSERT_STR_EQUAL("", usageLines[Line_Last]); + CPPUNIT_ASSERT_EQUAL(Line_Max, usageLines.size()); + CPPUNIT_ASSERT_EQUAL("Verbosity options", usageLines[Line_Text_Verbosity]); + CPPUNIT_ASSERT_EQUAL("", usageLines[Line_Text_Dummy1]); + CPPUNIT_ASSERT_EQUAL("Even more usage text", usageLines[Line_Text_Dummy2]); + CPPUNIT_ASSERT_EQUAL("", usageLines[Line_Last]); }