xo-alloc2: tidy for ++ utest coverage
This commit is contained in:
parent
f56b01e7b6
commit
8e8b6041d6
5 changed files with 33 additions and 0 deletions
26
utest/VisitReason.test.cpp
Normal file
26
utest/VisitReason.test.cpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/** @file VisitReason.test.cpp
|
||||
*
|
||||
* @author Roland Conybeare, May 2026
|
||||
**/
|
||||
|
||||
#include <xo/alloc2/VisitReason.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
namespace xo {
|
||||
using xo::mm::VisitReason;
|
||||
|
||||
namespace ut {
|
||||
|
||||
TEST_CASE("visitreason-1", "[visitreason]")
|
||||
{
|
||||
REQUIRE(VisitReason::unspecified() == VisitReason::unspecified());
|
||||
|
||||
REQUIRE(VisitReason::unspecified() != VisitReason::forward());
|
||||
REQUIRE(VisitReason::unspecified() != VisitReason::verify());
|
||||
REQUIRE(VisitReason::forward() != VisitReason::verify());
|
||||
}
|
||||
|
||||
} /*namespace ut*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end VisitReason.test.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue