Skipping tests that require not implemented functionality

This commit is contained in:
Robert Bendun 2022-06-19 16:15:41 +02:00
parent 2dd97709a0
commit 29f9a4467c

View File

@ -173,19 +173,25 @@ suite parser_test = [] {
};
"Variable declarations"_test = [] {
should("Support variable declaration with assigment") = [] {
expect_ast("var x = 10", Ast::variable_declaration(
{},
{ Ast::literal({ Token::Type::Symbol, "x", {} }) },
Ast::literal({ Token::Type::Numeric, "10", {} })));
};
skip / should("Support variable declaration") = [] {
expect_ast("var x", Ast::variable_declaration(
{},
{ Ast::literal({ Token::Type::Symbol, "x", {} }) },
std::nullopt));
};
skip / should("Support multiple variables declaration") = [] {
expect_ast("var x y", Ast::variable_declaration(
{},
{Ast::literal({ Token::Type::Symbol, "x", {} }), Ast::literal({ Token::Type::Symbol, "y", {} })},
std::nullopt));
};
};
};