mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
add bitwise_operators
This commit is contained in:
parent
cd01fa1ba4
commit
9a700b545d
4 changed files with 71 additions and 8 deletions
|
|
@ -291,9 +291,9 @@ TEST_CASE("enum_entries") {
|
|||
REQUIRE(s4 == std::array<std::pair<number, std::string_view>, 3>{{{number::one, "one"}, {number::two, "two"}, {number::three, "three"}}});
|
||||
}
|
||||
|
||||
TEST_CASE("operator<<") {
|
||||
TEST_CASE("ostream_operators") {
|
||||
auto test_ostream = [](auto e, std::string_view name) {
|
||||
using namespace magic_enum::ops;
|
||||
using namespace magic_enum::ostream_operators;
|
||||
std::stringstream ss;
|
||||
ss << e;
|
||||
REQUIRE(ss.str() == name);
|
||||
|
|
@ -323,6 +323,9 @@ TEST_CASE("operator<<") {
|
|||
test_ostream(static_cast<number>(0), "");
|
||||
}
|
||||
|
||||
TEST_CASE("bitwise_operators") {
|
||||
}
|
||||
|
||||
TEST_CASE("type_traits") {
|
||||
REQUIRE_FALSE(magic_enum::is_unscoped_enum_v<Color>);
|
||||
REQUIRE_FALSE(magic_enum::is_unscoped_enum_v<Numbers>);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue