mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests.
This commit is contained in:
@@ -337,7 +337,10 @@ BOOST_AUTO_TEST_CASE(optimise)
|
||||
|
||||
Block const& parentBlockAfter = program.ast();
|
||||
BOOST_TEST(parentBlockAfter.statements.size() == 1);
|
||||
BOOST_TEST(holds_alternative<VariableDeclaration>(parentBlockAfter.statements[0]));
|
||||
BOOST_TEST(holds_alternative<Block>(parentBlockAfter.statements[0]));
|
||||
Block const& innerBlock = get<Block>(parentBlockAfter.statements[0]);
|
||||
BOOST_TEST(innerBlock.statements.size() == 1);
|
||||
BOOST_TEST(holds_alternative<VariableDeclaration>(innerBlock.statements[0]));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(output_operator)
|
||||
|
||||
Reference in New Issue
Block a user