From 4ae97f4563ac3924b477473702b8b0ac64d4f72a Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 6 Feb 2020 19:37:14 +0100 Subject: [PATCH] Make dialect option lowercase. --- test/libyul/SyntaxTest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/libyul/SyntaxTest.cpp b/test/libyul/SyntaxTest.cpp index 330aba2ee..419e8e00d 100644 --- a/test/libyul/SyntaxTest.cpp +++ b/test/libyul/SyntaxTest.cpp @@ -70,7 +70,7 @@ vector 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{