Merge pull request #10578 from ethereum/ast-test

Properly print sources in ASTJSONTest
This commit is contained in:
Leonardo 2020-12-11 17:41:31 +01:00 committed by GitHub
commit 7972d8eb98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,7 +281,7 @@ void ASTJSONTest::printSource(ostream& _stream, string const& _linePrefix, bool
for (auto const& source: m_sources)
{
if (m_sources.size() > 1 || source.first != "a")
_stream << _linePrefix << sourceDelimiter << source.first << endl << endl;
_stream << _linePrefix << sourceDelimiter << source.first << " ====" << endl << endl;
stringstream stream(source.second);
string line;
while (getline(stream, line))