Fix an actually invalid test

C++ overload resolution/list initialization rules are hard.
This commit is contained in:
Nikita Ofitserov 2017-07-24 01:02:03 +03:00
parent f5cae64e52
commit 0f4978e503

View file

@ -1120,7 +1120,7 @@ TEST_CASE("constructors")
SECTION("constructor with implicit types (array)")
{
json j {std::move(source)};
json j {std::move(source), {}};
CHECK(&j[0][0] == source_addr);
}
@ -1132,7 +1132,7 @@ TEST_CASE("constructors")
SECTION("assignment with implicit types (array)")
{
json j = {std::move(source)};
json j = {std::move(source), {}};
CHECK(&j[0][0] == source_addr);
}