This commit is contained in:
chatlanin
2025-01-03 10:58:50 +03:00
parent 55917da5ee
commit 67eab0a97f
15 changed files with 523 additions and 34 deletions

13
tests/mt/max.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include "catch2/catch_test_macros.hpp"
#include "hack/mt/algorithms/max.hpp"
TEST_CASE("mt")
{
SECTION("max buffer")
{
int a = 4, b = 5;
int& c = a;
REQUIRE(hack::mt::algorithms::max(4, 5) == 5);
REQUIRE(hack::mt::algorithms::max(c, b) == 5);
}
}