based

Opinionated utility library
git clone git://git.dimitrijedobrota.com/based.git
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING

mapper_test.cpp (350B)


0 #define CATCH_CONFIG_RUNTIME_STATIC_REQUIRE
2 #include "based/char/mapper.hpp"
4 #include <catch2/catch_test_macros.hpp>
6 #include "based/char/character.hpp"
8 struct test
9 {
10 constexpr bool operator()(based::character chr) const { return chr >= '\0'; }
11 };
13 template class based::mapper<test>;
15 TEST_CASE("mapper", "[char/mapper]")
16 {
17 REQUIRE(true);
18 }