1
0
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:
Niels
2015-05-09 15:29:20 +02:00
parent aca3f65bbe
commit 9cdd278f45
3 changed files with 20 additions and 3 deletions

View File

@ -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}
}));
}
}