Merge pull request #3553 from ethereum/simpleOptimizerTestFix

Provide input for two optimizer tests.
This commit is contained in:
chriseth 2018-02-20 19:25:37 +01:00 committed by GitHub
commit dcc4083b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,7 @@ BOOST_AUTO_TEST_CASE(constant_folding_both_sides)
} }
})"; })";
compileBothVersions(sourceCode); compileBothVersions(sourceCode);
compareVersions("f(uint256)"); compareVersions("f(uint256)", 7);
} }
BOOST_AUTO_TEST_CASE(storage_access) BOOST_AUTO_TEST_CASE(storage_access)
@ -190,7 +190,7 @@ BOOST_AUTO_TEST_CASE(storage_access)
} }
)"; )";
compileBothVersions(sourceCode); compileBothVersions(sourceCode);
compareVersions("f(uint256)"); compareVersions("f(uint256)", 7);
} }
BOOST_AUTO_TEST_CASE(array_copy) BOOST_AUTO_TEST_CASE(array_copy)