aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityParser.cpp
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-09-10 20:26:34 +0800
committerLianaHus <liana@ethdev.com>2015-09-10 20:26:34 +0800
commit845bcf8db09c536c157a7575981daa42b6e6e938 (patch)
tree07557b43dc18366d3ce9be99c6d63737b4864437 /test/libsolidity/SolidityParser.cpp
parent3fc2561223c989885e1473cb29394bb07a26492f (diff)
downloaddexon-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/SolidityParser.cpp')
-rw-r--r--test/libsolidity/SolidityParser.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp
index 3cb5aa4b..14b9e9e4 100644
--- a/test/libsolidity/SolidityParser.cpp
+++ b/test/libsolidity/SolidityParser.cpp
@@ -914,6 +914,16 @@ BOOST_AUTO_TEST_CASE(location_specifiers_with_var)
BOOST_CHECK_THROW(parseText(text), ParserError);
}
+BOOST_AUTO_TEST_CASE(empty_comment)
+{
+ char const* text = R"(
+ //
+ contract test
+ {}
+ )";
+ BOOST_CHECK_NO_THROW(parseText(text));
+}
+
BOOST_AUTO_TEST_SUITE_END()
}