Permalink
Browse files

better test

  • Loading branch information...
1 parent 35c32ae commit 1774ce97daf77692ce3d8fe11a1f2a7cf1a80139 @peterneubauer committed Aug 28, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 cypher/src/test/scala/org/neo4j/cypher/docgen/cookbook/PathTreeTest.scala
@@ -128,12 +128,12 @@ to order by.
"WHERE " +
"type(year)+type(month)+type(day) > '20101231' AND " +
"type(year)+type(month)+type(day) < '20110104' "+
- "RETURN event.name " +
- "ORDER BY event.name ASC",
+ "RETURN event.name, type(year)+type(month)+type(day) as date " +
+ "ORDER BY date DESC, event.name ASC",
returns = "Returning all events between 2010-12-31 and 2011-01-04, in this case +Event2+ and +Event3+.",
(p) => assertEquals(List(
- Map("event.name" -> "Event2"),
- Map("event.name" -> "Event3")
+ Map("event.name" -> "Event3", "date" -> "20110103"),
+ Map("event.name" -> "Event2", "date" -> "20110101")
),p.toList))
}
}

0 comments on commit 1774ce9

Please sign in to comment.