Update tests.

This commit is contained in:
Daniel Kirchner
2021-11-09 14:34:05 +01:00
parent f2d9a806e0
commit 10618188dd
159 changed files with 893 additions and 638 deletions
+4 -1
View File
@@ -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)