mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 00:26:19 +08:00
@@ -1,5 +1,3 @@
|
||||
#include "test_enum2.hpp"
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <rfl.hpp>
|
||||
@@ -19,9 +17,7 @@ struct Circle {
|
||||
Color color;
|
||||
};
|
||||
|
||||
void test() {
|
||||
std::cout << std::source_location::current().function_name() << std::endl;
|
||||
|
||||
TEST(json, test_enum2) {
|
||||
auto mutable_circle = Circle{.radius = 2.0, .color = Color::green};
|
||||
|
||||
if (auto color = rfl::string_to_enum<Color>("red"); color) {
|
||||
|
||||
Reference in New Issue
Block a user