mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Setting metadata has and version type for semantic tests to be empty.
This commit is contained in:
parent
cf59d7fc13
commit
12ef273d06
@ -114,6 +114,12 @@ SemanticTest::SemanticTest(
|
|||||||
|
|
||||||
parseExpectations(m_reader.stream());
|
parseExpectations(m_reader.stream());
|
||||||
soltestAssert(!m_tests.empty(), "No tests specified in " + _filename);
|
soltestAssert(!m_tests.empty(), "No tests specified in " + _filename);
|
||||||
|
|
||||||
|
if (_evmVersion == EVMVersion{})
|
||||||
|
{
|
||||||
|
m_compiler.setVersionType(CompilerStack::VersionType::Empty);
|
||||||
|
m_compiler.setMetadataHash(CompilerStack::MetadataHash::None);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TestCase::TestResult SemanticTest::run(ostream& _stream, string const& _linePrefix, bool _formatted)
|
TestCase::TestResult SemanticTest::run(ostream& _stream, string const& _linePrefix, bool _formatted)
|
||||||
|
Loading…
Reference in New Issue
Block a user