Fix an actually invalid test
C++ overload resolution/list initialization rules are hard.
This commit is contained in:
parent
f5cae64e52
commit
0f4978e503
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue