From 6ef805c2a915cba16f5d9f1ccd38d13384f424a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Wed, 29 Apr 2020 21:00:50 +0200 Subject: [vcpkg] Small touchups for vcpkg unit tests (#11068) * Do not disable expression decomposition in some optional tests The tests are trivial enough that it is unlikely to come useful, but the old usage is bad practice. * Run tests in random order This should prevent committing tests that are run-order dependent, or at least shake them out eventually in CI. --- toolsrc/src/vcpkg-test/optional.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toolsrc/src') diff --git a/toolsrc/src/vcpkg-test/optional.cpp b/toolsrc/src/vcpkg-test/optional.cpp index ce728208f..c2348c5c6 100644 --- a/toolsrc/src/vcpkg-test/optional.cpp +++ b/toolsrc/src/vcpkg-test/optional.cpp @@ -19,9 +19,9 @@ TEST_CASE ("equal", "[optional]") using vcpkg::Optional; CHECK(Optional{} == Optional{}); - CHECK(!(Optional{} == Optional{42})); - CHECK(!(Optional{42} == Optional{})); - CHECK(!(Optional{1729} == Optional{42})); + CHECK_FALSE(Optional{} == Optional{42}); + CHECK_FALSE(Optional{42} == Optional{}); + CHECK_FALSE(Optional{1729} == Optional{42}); CHECK(Optional{42} == Optional{42}); } -- cgit v1.2.3