mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix and better output for tests
This commit is contained in:
parent
5738e865d5
commit
9ca0fde853
@ -99,7 +99,13 @@ DocStringParser::iter DocStringParser::parseDocTagLine(iter _pos, iter _end, boo
|
|||||||
solAssert(!!m_lastTag, "");
|
solAssert(!!m_lastTag, "");
|
||||||
auto nlPos = find(_pos, _end, '\n');
|
auto nlPos = find(_pos, _end, '\n');
|
||||||
if (_appending && _pos < _end && *_pos != ' ' && *_pos != '\t')
|
if (_appending && _pos < _end && *_pos != ' ' && *_pos != '\t')
|
||||||
|
{
|
||||||
m_lastTag->content += " ";
|
m_lastTag->content += " ";
|
||||||
|
}
|
||||||
|
else if (!_appending)
|
||||||
|
{
|
||||||
|
_pos = skipWhitespace(_pos, _end);
|
||||||
|
}
|
||||||
copy(_pos, nlPos, back_inserter(m_lastTag->content));
|
copy(_pos, nlPos, back_inserter(m_lastTag->content));
|
||||||
return skipLineOrEOS(nlPos, _end);
|
return skipLineOrEOS(nlPos, _end);
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ public:
|
|||||||
m_reader.parse(_expectedDocumentationString, expectedDocumentation);
|
m_reader.parse(_expectedDocumentationString, expectedDocumentation);
|
||||||
BOOST_CHECK_MESSAGE(
|
BOOST_CHECK_MESSAGE(
|
||||||
expectedDocumentation == generatedDocumentation,
|
expectedDocumentation == generatedDocumentation,
|
||||||
"Expected " << expectedDocumentation.toStyledString() <<
|
"Expected:\n" << expectedDocumentation.toStyledString() <<
|
||||||
"\n but got:\n" << generatedDocumentation.toStyledString()
|
"\n but got:\n" << generatedDocumentation.toStyledString()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user