mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
overworked code for pull request #71
This commit is contained in:
@ -8529,4 +8529,16 @@ TEST_CASE("regression tests")
|
||||
CHECK(json(json::number_float_t(INFINITY)) == json());
|
||||
}
|
||||
}
|
||||
|
||||
SECTION("pull request #71 - handle enum type")
|
||||
{
|
||||
enum { t = 0 };
|
||||
json j = json::array();
|
||||
j.push_back(t);
|
||||
|
||||
j.push_back(json::object(
|
||||
{
|
||||
{"game_type", t}
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user