TINKERPOP-1976 Can't assert order() for pageRank()
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/13440d6b Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/13440d6b Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/13440d6b Branch: refs/heads/TINKERPOP-1990 Commit: 13440d6b6720b5d4f091f51674e7b341cc40e8a0 Parents: 0a5d8ce Author: Stephen Mallette <[email protected]> Authored: Wed Aug 8 06:38:21 2018 -0400 Committer: Stephen Mallette <[email protected]> Committed: Thu Aug 9 07:28:09 2018 -0400 ---------------------------------------------------------------------- gremlin-test/features/map/PageRank.feature | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/13440d6b/gremlin-test/features/map/PageRank.feature ---------------------------------------------------------------------- diff --git a/gremlin-test/features/map/PageRank.feature b/gremlin-test/features/map/PageRank.feature index 76af1ed..049b8c2 100644 --- a/gremlin-test/features/map/PageRank.feature +++ b/gremlin-test/features/map/PageRank.feature @@ -48,6 +48,8 @@ Feature: Step - pageRank() | m[{"name": ["lop"], "projectRank": [3.0]}] | | m[{"name": ["ripple"], "projectRank": [1.0]}] | + # can't fully assert order here because some ranks are equivalent. the java test does an "or" type assert to deal + # with this, which we can't express here in these tests. should probably change the test or Scenario: g_V_pageRank_order_byXpageRank_decrX_name Given the modern graph And the traversal of @@ -55,7 +57,7 @@ Feature: Step - pageRank() g.withComputer().V().pageRank().order().by("gremlin.pageRankVertexProgram.pageRank", Order.decr).values("name") """ When iterated to list - Then the result should be ordered + Then the result should be unordered | result | | lop | | ripple |
