add mt
This commit is contained in:
13
tests/mt/max.cpp
Normal file
13
tests/mt/max.cpp
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user