mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make YulInterpreterTest EVM version aware.
This commit is contained in:
parent
1ca3edf6a1
commit
14545852d1
@ -53,13 +53,9 @@ YulInterpreterTest::YulInterpreterTest(string const& _filename)
|
||||
BOOST_THROW_EXCEPTION(runtime_error("Cannot open test case: \"" + _filename + "\"."));
|
||||
file.exceptions(ios::badbit);
|
||||
|
||||
m_source = parseSourceAndSettings(file);
|
||||
|
||||
string line;
|
||||
while (getline(file, line))
|
||||
{
|
||||
if (boost::algorithm::starts_with(line, "// ----"))
|
||||
break;
|
||||
m_source += std::move(line) + "\n";
|
||||
}
|
||||
while (getline(file, line))
|
||||
if (boost::algorithm::starts_with(line, "// "))
|
||||
m_expectation += line.substr(3) + "\n";
|
||||
|
@ -37,7 +37,7 @@ namespace yul
|
||||
namespace test
|
||||
{
|
||||
|
||||
class YulInterpreterTest: public dev::solidity::test::TestCase
|
||||
class YulInterpreterTest: public dev::solidity::test::EVMVersionRestrictedTestCase
|
||||
{
|
||||
public:
|
||||
static std::unique_ptr<TestCase> create(Config const& _config)
|
||||
|
Loading…
Reference in New Issue
Block a user