Skip to content

Commit

Permalink
Added test that checks that LineFeed is acceptable as white space
Browse files Browse the repository at this point in the history
  • Loading branch information
systay committed Dec 14, 2011
1 parent a251fea commit f0f844d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions cypher/CHANGES.txt
Expand Up @@ -6,6 +6,7 @@ o Added column aliasing with AS
o Variable length relationships can now introduce a rel-iterable
o BREAKING CHANGE: Changed the syntax for iterable predicated ALL/NONE/ANY/SINGLE to use WHERE instead of a colon
o BREAKING CHANGE: ExecutionResult is now a read-once, forward only iterator.
o Fixed problems with optional graph elements

1.6.M01 (2011-11-24)
--------------------
Expand Down
9 changes: 9 additions & 0 deletions cypher/src/test/scala/org/neo4j/cypher/CypherParserTest.scala
Expand Up @@ -1050,6 +1050,15 @@ class CypherParserTest extends JUnitSuite with Assertions {
returns (ExpressionReturnItem(Entity("a"))))
}

@Test def shouldHandleLFAsWhiteSpace() {
testQuery(
"start\na=node(0)\nwhere\na-->()\nreturn\na",
Query.
start(NodeById("a", 0)).
where(HasRelationship(Entity("a"), Direction.OUTGOING, None))
returns (ExpressionReturnItem(Entity("a"))))
}

def testQuery(query: String, expectedQuery: Query) {
val parser = new CypherParser()

Expand Down

0 comments on commit f0f844d

Please sign in to comment.