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:
Vadim Zeitlin
2019-02-23 14:11:58 +01:00
parent 0e3784c46e
commit 466a2d000f

View File

@@ -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())