Macros | Enumerations | Functions
test_wchar_t.cpp File Reference
#include <catch2/catch.hpp>
#include <magic_enum/magic_enum.hpp>
#include <magic_enum/magic_enum_iostream.hpp>
#include <array>
#include <cctype>
#include <string_view>
#include <sstream>
Include dependency graph for test_wchar_t.cpp:

Go to the source code of this file.

Macros

#define CATCH_CONFIG_MAIN
 
#define MAGIC_ENUM_USING_ALIAS_STRING   using string = std::wstring;
 
#define MAGIC_ENUM_USING_ALIAS_STRING_VIEW   using string_view = std::wstring_view;
 

Enumerations

enum  Color {
  Color::RED = -10, Color::BLUE = 0, Color::GREEN = 10, Color::RED = 1,
  Color::GREEN = 2, Color::BLUE = 4, Color::RED = 1, Color::GREEN = 2,
  Color::BLUE = 4, Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4,
  Color::RED = -10, Color::BLUE = 0, Color::GREEN = 10, Color::RED,
  Color::BLUE, Color::GREEN, Color::RED = -12, Color::GREEN = 7,
  Color::BLUE = 15, Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4,
  Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4, Color::RED = 1,
  Color::GREEN = 2, Color::BLUE = 4, Color::RED = -12, Color::GREEN = 7,
  Color::BLUE = 15
}
 

Functions

 TEST_CASE ("enum_cast")
 
 TEST_CASE ("enum_count")
 
 TEST_CASE ("enum_entries")
 
 TEST_CASE ("enum_name")
 
 TEST_CASE ("enum_names")
 
 TEST_CASE ("enum_values")
 
 TEST_CASE ("istream_operators")
 
 TEST_CASE ("ostream_operators")
 

Macro Definition Documentation

◆ CATCH_CONFIG_MAIN

#define CATCH_CONFIG_MAIN

Definition at line 23 of file test_wchar_t.cpp.

◆ MAGIC_ENUM_USING_ALIAS_STRING

#define MAGIC_ENUM_USING_ALIAS_STRING   using string = std::wstring;

Definition at line 27 of file test_wchar_t.cpp.

◆ MAGIC_ENUM_USING_ALIAS_STRING_VIEW

#define MAGIC_ENUM_USING_ALIAS_STRING_VIEW   using string_view = std::wstring_view;

Definition at line 26 of file test_wchar_t.cpp.

Enumeration Type Documentation

◆ Color

enum Color
strong
Enumerator
RED 
BLUE 
GREEN 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 
RED 
BLUE 
GREEN 
RED 
BLUE 
GREEN 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 
RED 
GREEN 
BLUE 

Definition at line 36 of file test_wchar_t.cpp.

Function Documentation

◆ TEST_CASE() [1/8]

TEST_CASE ( "enum_cast"  )

Definition at line 51 of file test_wchar_t.cpp.

◆ TEST_CASE() [2/8]

TEST_CASE ( "enum_count"  )

Definition at line 77 of file test_wchar_t.cpp.

◆ TEST_CASE() [3/8]

TEST_CASE ( "enum_entries"  )

Definition at line 112 of file test_wchar_t.cpp.

◆ TEST_CASE() [4/8]

TEST_CASE ( "enum_name"  )

Definition at line 82 of file test_wchar_t.cpp.

◆ TEST_CASE() [5/8]

TEST_CASE ( "enum_names"  )

Definition at line 105 of file test_wchar_t.cpp.

◆ TEST_CASE() [6/8]

TEST_CASE ( "enum_values"  )

Definition at line 70 of file test_wchar_t.cpp.

◆ TEST_CASE() [7/8]

TEST_CASE ( "istream_operators"  )

Definition at line 135 of file test_wchar_t.cpp.

◆ TEST_CASE() [8/8]

TEST_CASE ( "ostream_operators"  )

Definition at line 119 of file test_wchar_t.cpp.



magic_enum
Author(s):
autogenerated on Fri Feb 21 2025 03:20:19