mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix for sol scanner where empty multiline comment became Natspec comment
This commit is contained in:
parent
a0ecb5d4e8
commit
7e8ecb1806
@ -227,6 +227,13 @@ BOOST_AUTO_TEST_CASE(documentation_comment_before_eos)
|
|||||||
BOOST_CHECK_EQUAL(scanner.getCurrentCommentLiteral(), "");
|
BOOST_CHECK_EQUAL(scanner.getCurrentCommentLiteral(), "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(empty_multiline_comment)
|
||||||
|
{
|
||||||
|
Scanner scanner(CharStream("/**/"));
|
||||||
|
BOOST_CHECK_EQUAL(scanner.getCurrentToken(), Token::EOS);
|
||||||
|
BOOST_CHECK_EQUAL(scanner.getCurrentCommentLiteral(), "");
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(empty_multiline_documentation_comment_before_eos)
|
BOOST_AUTO_TEST_CASE(empty_multiline_documentation_comment_before_eos)
|
||||||
{
|
{
|
||||||
Scanner scanner(CharStream("/***/"));
|
Scanner scanner(CharStream("/***/"));
|
||||||
|
Loading…
Reference in New Issue
Block a user