mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use "none" and "full" optimizer settings in the optimizer tests.
This commit is contained in:
@@ -41,7 +41,7 @@ namespace test
|
||||
u256 gasOpt{_gasOpt}; \
|
||||
u256 gasNoOpt{_gasNoOpt}; \
|
||||
u256 tolerance{_tolerance}; \
|
||||
u256 gas = m_optimize ? gasOpt : gasNoOpt; \
|
||||
u256 gas = m_optimiserSettings == OptimiserSettings::minimal() ? gasNoOpt : gasOpt; \
|
||||
u256 diff = gas < m_gasUsed ? m_gasUsed - gas : gas - m_gasUsed; \
|
||||
BOOST_CHECK_MESSAGE( \
|
||||
diff <= tolerance, \
|
||||
|
||||
Reference in New Issue
Block a user