diff options
author | LianaHus <liana@ethdev.com> | 2015-09-10 20:26:34 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-09-10 20:26:34 +0800 |
commit | 845bcf8db09c536c157a7575981daa42b6e6e938 (patch) | |
tree | 07557b43dc18366d3ce9be99c6d63737b4864437 /test/libsolidity/SolidityNatspecJSON.cpp | |
parent | 3fc2561223c989885e1473cb29394bb07a26492f (diff) | |
download | dexon-solidity-845bcf8db09c536c157a7575981daa42b6e6e938.tar.gz dexon-solidity-845bcf8db09c536c157a7575981daa42b6e6e938.tar.zst dexon-solidity-845bcf8db09c536c157a7575981daa42b6e6e938.zip |
- added tests to test empty comment
- fixed skipSingleLineComment
- some style fixes
Diffstat (limited to 'test/libsolidity/SolidityNatspecJSON.cpp')
-rw-r--r-- | test/libsolidity/SolidityNatspecJSON.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNatspecJSON.cpp b/test/libsolidity/SolidityNatspecJSON.cpp index 8a133f5f..5d20fe7b 100644 --- a/test/libsolidity/SolidityNatspecJSON.cpp +++ b/test/libsolidity/SolidityNatspecJSON.cpp @@ -527,6 +527,22 @@ BOOST_AUTO_TEST_CASE(natspec_multiline_notice_without_tag) checkNatspec(sourceCode, natspec, true); } +BOOST_AUTO_TEST_CASE(empty_comment) +{ + char const* sourceCode = R"( + // + contract test + {} + )"; + char const* natspec = R"ABCDEF( + { + "methods" : {} + } + )ABCDEF"; + + checkNatspec(sourceCode, natspec, true); +} + BOOST_AUTO_TEST_SUITE_END() } |