Make dialect option lowercase.

This commit is contained in:
chriseth 2020-02-06 19:37:14 +01:00
parent f0ebb26f29
commit 4ae97f4563

View File

@ -70,7 +70,7 @@ vector<string> validDialectNames()
void SyntaxTest::parseAndAnalyze()
{
string dialectName = m_validatedSettings.count("Dialect") ? m_validatedSettings["Dialect"] : "evmTyped";
string dialectName = m_validatedSettings.count("dialect") ? m_validatedSettings["dialect"] : "evmTyped";
yul::Dialect const& dialect = validDialects.at(dialectName)(m_evmVersion);
@ -119,12 +119,12 @@ bool SyntaxTest::validateSettings(langutil::EVMVersion _evmVersion)
if (!CommonSyntaxTest::validateSettings(_evmVersion))
return false;
if (!m_settings.count("Dialect"))
if (!m_settings.count("dialect"))
return true;
string const dialect = m_settings["Dialect"];
m_validatedSettings["Dialect"] = dialect;
m_settings.erase("Dialect");
string const dialect = m_settings["dialect"];
m_validatedSettings["dialect"] = dialect;
m_settings.erase("dialect");
if (!validDialects.count(dialect))
BOOST_THROW_EXCEPTION(runtime_error{