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:
parent
c7cf02053b
commit
dd80219653
3 changed files with 99 additions and 0 deletions
|
|
@ -1201,3 +1201,13 @@ TEST_CASE("multdimensional-switch-case") {
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __cpp_lib_format
|
||||
|
||||
#include <magic_enum_format.hpp>
|
||||
|
||||
TEST_CASE("format-base") {
|
||||
REQUIRE(std::format("Test-{:~^10}.", Color::RED) == "Test-~~~red~~~~.");
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue