Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Commit

Permalink
Add test case for queries starting with 'WITH' #335
Browse files Browse the repository at this point in the history
  • Loading branch information
szarnyasg committed Mar 5, 2018
1 parent 8f32d62 commit 81d962e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions compiler/src/test/scala/ingraph/sandbox/TckCompilerTest.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package ingraph.sandbox

import ingraph.model.fplan.Selection

class TckCompilerTest extends CompilerTest {

test("Hello World") {
Expand Down Expand Up @@ -131,6 +133,16 @@ class TckCompilerTest extends CompilerTest {
assert(getLeafNodes(stages.fplan)(0).flatSchema.length == 1)
}

ignore("Start with WITH") {
val stages = compile(
"""WITH 1 AS x
|MATCH (some:Thing {prop: x})
|RETURN some.prop
""".stripMargin
)
findFirstByType(stages.fplan, classOf[Selection]).condition
}

ignore("Placeholder for debugging plans") {
val stages = compile(
"""
Expand Down

0 comments on commit 81d962e

Please sign in to comment.