mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2031 Curve Calculator : Sort variable names by the order they first appear
This commit is contained in:
@@ -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