Commit 3e15b551 authored by Théo DELRIEU's avatar Théo DELRIEU

run make pretty

parent fbac056c
This diff is collapsed.
This diff is collapsed.
...@@ -177,10 +177,10 @@ TEST_CASE("value conversion") ...@@ -177,10 +177,10 @@ TEST_CASE("value conversion")
SECTION("reserve is called on containers that supports it") SECTION("reserve is called on containers that supports it")
{ {
// making the call to from_json throw in order to check capacity // making the call to from_json throw in order to check capacity
std::vector<float> v; std::vector<float> v;
CHECK_THROWS_AS(nlohmann::from_json(j, v), std::logic_error); CHECK_THROWS_AS(nlohmann::from_json(j, v), std::logic_error);
CHECK(v.capacity() == j.size()); CHECK(v.capacity() == j.size());
} }
} }
......
...@@ -11,8 +11,8 @@ enum test ...@@ -11,8 +11,8 @@ enum test
struct pod {}; struct pod {};
struct pod_bis {}; struct pod_bis {};
void to_json(json &, pod) noexcept; void to_json(json&, pod) noexcept;
void to_json(json &, pod_bis); void to_json(json&, pod_bis);
void from_json(const json&, pod) noexcept; void from_json(const json&, pod) noexcept;
void from_json(const json&, pod_bis); void from_json(const json&, pod_bis);
static json j; static json j;
......
...@@ -63,7 +63,7 @@ TEST_CASE("regression tests") ...@@ -63,7 +63,7 @@ TEST_CASE("regression tests")
SECTION("pull request #71 - handle enum type") SECTION("pull request #71 - handle enum type")
{ {
enum { t = 0 , u = 1}; enum { t = 0, u = 1};
json j = json::array(); json j = json::array();
j.push_back(t); j.push_back(t);
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment