Commit 0f4978e5 by Nikita Ofitserov

Fix an actually invalid test

C++ overload resolution/list initialization rules are hard.
parent f5cae64e
...@@ -1120,7 +1120,7 @@ TEST_CASE("constructors") ...@@ -1120,7 +1120,7 @@ TEST_CASE("constructors")
SECTION("constructor with implicit types (array)") SECTION("constructor with implicit types (array)")
{ {
json j {std::move(source)}; json j {std::move(source), {}};
CHECK(&j[0][0] == source_addr); CHECK(&j[0][0] == source_addr);
} }
...@@ -1132,7 +1132,7 @@ TEST_CASE("constructors") ...@@ -1132,7 +1132,7 @@ TEST_CASE("constructors")
SECTION("assignment with implicit types (array)") SECTION("assignment with implicit types (array)")
{ {
json j = {std::move(source)}; json j = {std::move(source), {}};
CHECK(&j[0][0] == source_addr); CHECK(&j[0][0] == source_addr);
} }
......
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