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:
parent
0e3784c46e
commit
466a2d000f
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue