Use CHECK() in wxURI unit test case
This allows the subsequent tests to still run even if one of the tests fails, which is more useful in this test than CPPUNIT_ASSERT_EQUAL(), which maps to REQUIRE() and so stops the test execution as soon as any check fails, because the tests are independent.
This commit is contained in:
@@ -96,7 +96,7 @@ URITestCase::URITestCase()
|
||||
|
||||
// apply the given accessor to the URI, check that the result is as expected
|
||||
#define URI_ASSERT_PART_EQUAL(uri, expected, accessor) \
|
||||
CPPUNIT_ASSERT_EQUAL(expected, wxURI(uri).accessor)
|
||||
CHECK(wxURI(uri).accessor == expected)
|
||||
|
||||
#define URI_ASSERT_HOSTTYPE_EQUAL(uri, expected) \
|
||||
URI_ASSERT_PART_EQUAL((uri), (expected), GetHostType())
|
||||
|
Reference in New Issue
Block a user