14 lines
273 B
C++
14 lines
273 B
C++
#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);
|
|
}
|
|
}
|