Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

better test

  • Loading branch information...
commit 1774ce97daf77692ce3d8fe11a1f2a7cf1a80139 1 parent 35c32ae
Peter Neubauer authored
8 cypher/src/test/scala/org/neo4j/cypher/docgen/cookbook/PathTreeTest.scala
@@ -128,12 +128,12 @@ to order by.
128 128 "WHERE " +
129 129 "type(year)+type(month)+type(day) > '20101231' AND " +
130 130 "type(year)+type(month)+type(day) < '20110104' "+
131   - "RETURN event.name " +
132   - "ORDER BY event.name ASC",
  131 + "RETURN event.name, type(year)+type(month)+type(day) as date " +
  132 + "ORDER BY date DESC, event.name ASC",
133 133 returns = "Returning all events between 2010-12-31 and 2011-01-04, in this case +Event2+ and +Event3+.",
134 134 (p) => assertEquals(List(
135   - Map("event.name" -> "Event2"),
136   - Map("event.name" -> "Event3")
  135 + Map("event.name" -> "Event3", "date" -> "20110103"),
  136 + Map("event.name" -> "Event2", "date" -> "20110101")
137 137 ),p.toList))
138 138 }
139 139 }

0 comments on commit 1774ce9

Please sign in to comment.
Something went wrong with that request. Please try again.