diff options
Diffstat (limited to 'test/style/property_expression.test.cpp')
-rw-r--r-- | test/style/property_expression.test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/style/property_expression.test.cpp b/test/style/property_expression.test.cpp index a7d1d25660..a6ee22106a 100644 --- a/test/style/property_expression.test.cpp +++ b/test/style/property_expression.test.cpp @@ -125,13 +125,13 @@ TEST(PropertyExpression, Issue8460) { TEST(PropertyExpression, TextSection) { expression::Value formattedSection1 = 42.0; PropertyExpression<double> ts1(textSection()); - EXPECT_DOUBLE_EQ(42.0, ts1.evaluate(expression::EvaluationContext().withFormattedSection(&formattedSection1))); + EXPECT_DOUBLE_EQ(42.0, ts1.evaluate(expression::EvaluationContext().withFormattedSectionID(&formattedSection1))); expression::Value formattedSection2{"header"s}; PropertyExpression<std::string> ts2(textSection()); - EXPECT_EQ("header"s, ts2.evaluate(expression::EvaluationContext().withFormattedSection(&formattedSection2))); + EXPECT_EQ("header"s, ts2.evaluate(expression::EvaluationContext().withFormattedSectionID(&formattedSection2))); // Evaluates to default, T(). PropertyExpression<Color> ts3(textSection()); - EXPECT_EQ(Color(), ts3.evaluate(expression::EvaluationContext().withFormattedSection(&formattedSection1))); + EXPECT_EQ(Color(), ts3.evaluate(expression::EvaluationContext().withFormattedSectionID(&formattedSection1))); } |