From c920b50ebe2e0b831b97739cb8bf04062154029a Mon Sep 17 00:00:00 2001 From: Mathias Baumann Date: Thu, 1 Aug 2019 14:02:33 +0200 Subject: [PATCH] Make sure a semantic test file always contains function calls Because if not, the code isn't even compiled. --- test/libsolidity/SemanticTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/libsolidity/SemanticTest.cpp b/test/libsolidity/SemanticTest.cpp index c17c2988d..018df82f3 100644 --- a/test/libsolidity/SemanticTest.cpp +++ b/test/libsolidity/SemanticTest.cpp @@ -62,6 +62,7 @@ SemanticTest::SemanticTest(string const& _filename, string const& _ipcPath, lang m_settings.erase("compileViaYul"); } parseExpectations(file); + soltestAssert(!m_tests.empty(), "No tests specified in " + _filename); } TestCase::TestResult SemanticTest::run(ostream& _stream, string const& _linePrefix, bool _formatted)