Skip to content

Commit

Permalink
Fix an actually invalid test
Browse files Browse the repository at this point in the history
C++ overload resolution/list initialization rules are hard.
  • Loading branch information
himikof committed Jul 23, 2017
1 parent f5cae64 commit 0f4978e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/unit-constructor1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand Down

0 comments on commit 0f4978e

Please sign in to comment.