From cfb6a1c1e047ff5221f8266f8e3dffc49f37b83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Sun, 7 Aug 2022 21:25:23 -0700 Subject: [PATCH] Cleanup. --- tests/sort_test.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/sort_test.cpp b/tests/sort_test.cpp index 57551e2..feb4115 100644 --- a/tests/sort_test.cpp +++ b/tests/sort_test.cpp @@ -19,11 +19,11 @@ TEST_CASE("quickSort", "") }; auto strCmpFn = [](const void* _lhs, const void* _rhs) - { - const char* lhs = *(const char**)_lhs; - const char* rhs = *(const char**)_rhs; - return bx::strCmp(lhs, rhs); - }; + { + const char* lhs = *(const char**)_lhs; + const char* rhs = *(const char**)_rhs; + return bx::strCmp(lhs, rhs); + }; REQUIRE(!bx::isSorted(str, BX_COUNTOF(str), sizeof(str[0]), strCmpFn) ); @@ -51,11 +51,11 @@ TEST_CASE("quickSort", "") REQUIRE(-1 == bx::binarySearch("kupina", str, BX_COUNTOF(str), sizeof(str[0]), bsearchStrCmpFn) ); auto byteCmpFn = [](const void* _lhs, const void* _rhs) - { - int8_t lhs = *(const int8_t*)_lhs; - int8_t rhs = *(const int8_t*)_rhs; - return lhs - rhs; - }; + { + int8_t lhs = *(const int8_t*)_lhs; + int8_t rhs = *(const int8_t*)_rhs; + return lhs - rhs; + }; int8_t byte[128]; bx::RngMwc rng;