Skip to content

Commit

Permalink
testing nholmann json array
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed May 20, 2020
1 parent f45db90 commit 44592ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/NlohmannTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ struct nlohmann_traits {
TEST(ClaimTest, NholmannTest) {
const auto claim = jwt::basic_claim<nlohmann::json::value_type, nlohmann::json::object_t, nlohmann::json::array_t,
std::string, double, int64_t, bool>(std::string("string"));
const auto array = jwt::basic_claim<nlohmann::json::value_type, nlohmann::json::object_t, nlohmann::json::array_t,
std::string, double, int64_t, bool>(std::set<std::string>{"string", "string"});

std::string token =
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ0ZXN0In0."
Expand Down

0 comments on commit 44592ae

Please sign in to comment.