1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-10 23:44:29 +00:00

Magic enum format in a separated header file (#185)

This commit is contained in:
Bela Schaum 2022-06-28 12:45:47 +02:00 committed by GitHub
parent c7cf02053b
commit dd80219653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 99 additions and 0 deletions

View file

@ -822,3 +822,13 @@ TEST_CASE("constexpr_for") {
}
#endif
#ifdef __cpp_lib_format
#include <magic_enum_format.hpp>
TEST_CASE("format-base") {
REQUIRE(std::format("Test-{:~^11}.", Color::RED | Color::GREEN) == "Test-~RED|GREEN~.");
}
#endif