Move unsatisfied_version test from SolidityNameAndTypeResolution to SolidityParser

This commit is contained in:
Alex Beregszaszi
2018-12-18 15:02:59 +00:00
parent ba15bc0a23
commit bd2f2ecbbd
2 changed files with 8 additions and 12 deletions
+8
View File
@@ -113,6 +113,14 @@ while(0)
BOOST_AUTO_TEST_SUITE(SolidityParser)
BOOST_AUTO_TEST_CASE(unsatisfied_version)
{
char const* text = R"(
pragma solidity ^99.99.0;
)";
CHECK_PARSE_ERROR(text, "Source file requires different compiler version");
}
BOOST_AUTO_TEST_CASE(unsatisfied_version_followed_by_invalid_syntax)
{
char const* text = R"(