Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
codesigner committed Dec 7, 2022
1 parent cec92f3 commit 8e3e92c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/graph/visitor/test/DeduceAliasTypeVisitorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,17 @@ TEST_F(DeduceAliasTypeVisitorTest, SubscriptExpr) {
EXPECT_EQ(visitor.outputType(), AliasType::kRuntime);
}
{
auto* items = ExpressionList::make(pool);
auto expr = SubscriptExpression::make(
pool, ListExpression::make(pool, items), ConstantExpression::make(pool, 1));
auto expr = SubscriptExpression::make(pool,
FunctionCallExpression::make(pool, "relationships"),
ConstantExpression::make(pool, 1));
DeduceAliasTypeVisitor visitor(nullptr, nullptr, 0, AliasType::kEdgeList);
expr->accept(&visitor);
EXPECT_TRUE(visitor.ok());
EXPECT_EQ(visitor.outputType(), AliasType::kEdge);
}
{
auto* items = ExpressionList::make(pool);
auto expr = SubscriptExpression::make(
pool, ListExpression::make(pool, items), ConstantExpression::make(pool, 1));
pool, FunctionCallExpression::make(pool, "nodes"), ConstantExpression::make(pool, 1));
DeduceAliasTypeVisitor visitor(nullptr, nullptr, 0, AliasType::kNodeList);
expr->accept(&visitor);
EXPECT_TRUE(visitor.ok());
Expand All @@ -111,18 +110,17 @@ TEST_F(DeduceAliasTypeVisitorTest, SubscriptExpr) {
EXPECT_EQ(visitor.outputType(), AliasType::kRuntime);
}
{
auto* items = ExpressionList::make(pool);
auto expr = SubscriptRangeExpression::make(
pool, ListExpression::make(pool, items), ConstantExpression::make(pool, 1));
auto expr = SubscriptRangeExpression::make(pool,
FunctionCallExpression::make(pool, "relationships"),
ConstantExpression::make(pool, 1));
DeduceAliasTypeVisitor visitor(nullptr, nullptr, 0, AliasType::kEdgeList);
expr->accept(&visitor);
EXPECT_TRUE(visitor.ok());
EXPECT_EQ(visitor.outputType(), AliasType::kEdgeList);
}
{
auto* items = ExpressionList::make(pool);
auto expr = SubscriptRangeExpression::make(
pool, ListExpression::make(pool, items), ConstantExpression::make(pool, 1));
pool, FunctionCallExpression::make(pool, "nodes"), ConstantExpression::make(pool, 1));
DeduceAliasTypeVisitor visitor(nullptr, nullptr, 0, AliasType::kNodeList);
expr->accept(&visitor);
EXPECT_TRUE(visitor.ok());
Expand Down

0 comments on commit 8e3e92c

Please sign in to comment.