hack/tests/mt/max.cpp

14 lines
273 B
C++
Raw Normal View History

2025-01-03 10:58:50 +03:00
#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);
}
}