Skip to content

Commit 0d46edb

Browse files
committed
fixup! Test suite for FunctionCallGraph
1 parent 82b1f4d commit 0d46edb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/libsolidity/analysis/FunctionCallGraph.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,8 @@ void checkCallGraphExpectations(
145145
);
146146
for (string const& contractName: _expectedEdges | views::keys)
147147
{
148-
set<string> emptySet;
149148
soltestAssert(
150-
(ranges::views::set_difference(valueOrDefault(_expectedCreatedContractSets, contractName, emptySet), _expectedEdges | views::keys)).empty(),
149+
(ranges::views::set_difference(valueOrDefault(_expectedCreatedContractSets, contractName, {}), _expectedEdges | views::keys)).empty(),
151150
"Inconsistent expectations: contract expected to be created but not to be present in the source file."
152151
);
153152
}

0 commit comments

Comments
 (0)