mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#2031 Curve Calculator : Sort variable names by the order they first appear
This commit is contained in:
1 parent
dd01863240
commit
f61c83a659
3 files changed
+21
-4
No files matched your search
@@ -41,8 +41,8 @@ TEST(RicExpressionParserTest, DetectVariables)
|
||||
|
||||
std::vector<QString> variables = ExpressionParser::detectReferencedVariables(expr);
|
||||
|
||||
EXPECT_STREQ(variables[0].toStdString().data(), "a");
|
||||
EXPECT_STREQ(variables[1].toStdString().data(), "c");
|
||||
EXPECT_STREQ(variables[0].toStdString().data(), "c");
|
||||
EXPECT_STREQ(variables[1].toStdString().data(), "a");
|
||||
EXPECT_STREQ(variables[2].toStdString().data(), "x");
|
||||
EXPECT_STREQ(variables[3].toStdString().data(), "y");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user