Skip to content

Commit

Permalink
Rebase fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitry Solovyov <dimitry@solovyov.lv>
  • Loading branch information
disolovyov committed Jun 4, 2018
1 parent 5c3447f commit 62cafe9
Showing 1 changed file with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@ public void whereMatchPattern() {
))
.withFlavor(flavor)
.rewritingWith(SimplifyRenamedAliases$.MODULE$)
.removes(__().V().as(" GENERATED1").where(__().select(" GENERATED1").where(P.isEq("n"))).outE())
.adds(__().select("n").outE());
.removes(
__().V().as(" GENERATED1")
.where(__().select(" GENERATED1").where(P.isEq("n")))
.as(" cypher.path.start.GENERATED2"))
.adds(
__().select("n")
.as(" cypher.path.start.GENERATED2")
);
}

@Test
Expand All @@ -56,7 +62,12 @@ public void whereNonStartMatchPattern() {
))
.withFlavor(flavor)
.rewritingWith(SimplifyRenamedAliases$.MODULE$)
.removes(__().V().as(" GENERATED1").where(__().select(" GENERATED1").where(P.isEq("m"))).outE())
.adds(__().select("m").is(P.neq(NULL)).outE());
.removes(
__().V().as(" GENERATED2")
.where(__().select(" GENERATED2").where(P.isEq("m")))
.as(" cypher.path.start.GENERATED3"))
.adds(
__().select("m").is(P.neq(NULL))
.as(" cypher.path.start.GENERATED3"));
}
}

0 comments on commit 62cafe9

Please sign in to comment.