Skip to content

Commit

Permalink
removing duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed May 20, 2020
1 parent 44592ae commit 8ec4bfb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/NlohmannTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ 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"});
using nholmann_claim = jwt::basic_claim<nlohmann::json::value_type, nlohmann::json::object_t, nlohmann::json::array_t,
std::string, double, int64_t, bool>;

const auto string = nholmann_claim(std::string("string"));
const auto array = nholmann_claim(std::set<std::string>{"string", "string"});

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

0 comments on commit 8ec4bfb

Please sign in to comment.