Make sure a semantic test file always contains function calls

Because if not, the code isn't even compiled.
This commit is contained in:
Mathias Baumann 2019-08-01 14:02:33 +02:00
parent 04f298fd0e
commit c920b50ebe

View File

@ -62,6 +62,7 @@ SemanticTest::SemanticTest(string const& _filename, string const& _ipcPath, lang
m_settings.erase("compileViaYul"); m_settings.erase("compileViaYul");
} }
parseExpectations(file); parseExpectations(file);
soltestAssert(!m_tests.empty(), "No tests specified in " + _filename);
} }
TestCase::TestResult SemanticTest::run(ostream& _stream, string const& _linePrefix, bool _formatted) TestCase::TestResult SemanticTest::run(ostream& _stream, string const& _linePrefix, bool _formatted)