Skip to content
Snippets Groups Projects
Commit 802ef9a9 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add few missing tests

parent 0d62634e
No related branches found
No related tags found
1 merge request!70Feature/language reduce static
...@@ -71,4 +71,28 @@ TEST_CASE("ConcatExpressionProcessor", "[language]") ...@@ -71,4 +71,28 @@ TEST_CASE("ConcatExpressionProcessor", "[language]")
{ {
CHECK_CONCAT_EXPRESSION_RESULT(R"(let s:string, s = "foo_"; s = s+true;)", "s", std::string{"foo_1"}); CHECK_CONCAT_EXPRESSION_RESULT(R"(let s:string, s = "foo_"; s = s+true;)", "s", std::string{"foo_1"});
} }
SECTION("string + R^1")
{
std::ostringstream os;
os << "foo_" << TinyVector<1>{1};
CHECK_CONCAT_EXPRESSION_RESULT(R"(let x:R^1, x = 1; let s:string, s = "foo_"; s = s+x;)", "s", os.str());
}
SECTION("string + R^2")
{
std::ostringstream os;
os << "foo_" << TinyVector<2>{1, 2};
CHECK_CONCAT_EXPRESSION_RESULT(R"(let x:R^2, x = (1,2); let s:string, s = "foo_"; s = s+x;)", "s", os.str());
}
SECTION("string + R^3")
{
std::ostringstream os;
os << "foo_" << TinyVector<3>{1, 2, 3};
CHECK_CONCAT_EXPRESSION_RESULT(R"(let x:R^3, x = (1,2,3); let s:string, s = "foo_"; s = s+x;)", "s", os.str());
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment