@@ -60,7 +60,7 @@ class ExpressionTest : public ::testing::Test {
6060
6161 protected:
6262 void testExpr (const std::string &exprSymbol, Value expected) {
63- std::string query = " RETURN " + exprSymbol;
63+ std::string query = " YIELD " + exprSymbol;
6464 nebula::graph::QueryContext queryCtxt;
6565 nebula::GQLParser gParser (&queryCtxt);
6666 auto result = gParser .parse (query);
@@ -86,7 +86,7 @@ class ExpressionTest : public ::testing::Test {
8686 }
8787
8888 void testToString (const std::string &exprSymbol, const char *expected) {
89- std::string query = " RETURN " + exprSymbol;
89+ std::string query = " YIELD " + exprSymbol;
9090 nebula::graph::QueryContext queryCtxt;
9191 nebula::GQLParser gParser (&queryCtxt);
9292 auto result = gParser .parse (query);
@@ -106,7 +106,7 @@ class ExpressionTest : public ::testing::Test {
106106 }
107107
108108 void testFunction (const char *name, const std::vector<Value> &args, const Value &expected) {
109- std::string query = " RETURN " + std::string (name) + " (" ;
109+ std::string query = " YIELD " + std::string (name) + " (" ;
110110 for (const auto &i : args) {
111111 query += i.toString () + " ," ;
112112 }
0 commit comments