You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2017/10/26 17:15:15 UTC

[23/50] tinkerpop git commit: TINKERPOP-1784 Added some more vertex tests

TINKERPOP-1784 Added some more vertex tests


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/d3616e7f
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/d3616e7f
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/d3616e7f

Branch: refs/heads/TINKERPOP-1784
Commit: d3616e7f1a8302ace8b569504eafcb7cd84aec23
Parents: 3783a0b
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Sep 28 10:29:47 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Oct 26 13:14:36 2017 -0400

----------------------------------------------------------------------
 gremlin-test/features/map/Vertex.feature | 70 +++++++++++++++++++++++++--
 1 file changed, 65 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d3616e7f/gremlin-test/features/map/Vertex.feature
----------------------------------------------------------------------
diff --git a/gremlin-test/features/map/Vertex.feature b/gremlin-test/features/map/Vertex.feature
index fbd4168..5bed2a6 100644
--- a/gremlin-test/features/map/Vertex.feature
+++ b/gremlin-test/features/map/Vertex.feature
@@ -73,10 +73,10 @@ Feature: Step - V(), E(), out(), in(), both(), inE(), outE(), bothE()
 
   Scenario: g_VX2X_in
     Given the modern graph
-    And using the parameter v1 is "v[vadas]"
+    And using the parameter v2 is "v[vadas]"
     And the traversal of
       """
-      g.V(v1).in()
+      g.V(v2).in()
       """
     When iterated to list
     Then the result should be unordered
@@ -84,10 +84,10 @@ Feature: Step - V(), E(), out(), in(), both(), inE(), outE(), bothE()
 
   Scenario: g_VX4X_both
     Given the modern graph
-    And using the parameter v1 is "v[josh]"
+    And using the parameter v4 is "v[josh]"
     And the traversal of
       """
-      g.V(v1).both()
+      g.V(v4).both()
       """
     When iterated to list
     Then the result should be unordered
@@ -108,4 +108,64 @@ Feature: Step - V(), E(), out(), in(), both(), inE(), outE(), bothE()
       | edge | marko-knows->vadas |
       | edge | peter-created->lop |
       | edge | josh-created->lop |
-      | edge | josh-created->ripple |
\ No newline at end of file
+      | edge | josh-created->ripple |
+
+  Scenario: g_EX11X
+    Given the modern graph
+    And using the parameter e11 is "e[josh-created->lop]"
+    And the traversal of
+    """
+      g.E(e11)
+      """
+    When iterated to list
+    Then the result should be unordered
+      | edge | josh-created->lop |
+
+  Scenario: g_VX1X_outE
+    Given the modern graph
+    And using the parameter v1 is "v[marko]"
+    And the traversal of
+    """
+      g.V(v1).outE()
+      """
+    When iterated to list
+    Then the result should be unordered
+      | edge | marko-created->lop |
+      | edge | marko-knows->josh |
+      | edge | marko-knows->vadas |
+
+  Scenario: g_VX2X_outE
+    Given the modern graph
+    And using the parameter v2 is "v[vadas]"
+    And the traversal of
+    """
+      g.V(v2).inE()
+      """
+    When iterated to list
+    Then the result should be unordered
+      | edge | marko-knows->vadas |
+
+  Scenario: g_VX4X_bothEXcreatedX
+    Given the modern graph
+    And using the parameter v4 is "v[josh]"
+    And the traversal of
+    """
+      g.V(v4).bothE("created")
+      """
+    When iterated to list
+    Then the result should be unordered
+      | edge | josh-created->lop |
+      | edge | josh-created->ripple |
+
+  Scenario: g_VX4X_bothE
+    Given the modern graph
+    And using the parameter v4 is "v[josh]"
+    And the traversal of
+    """
+      g.V(v4).bothE()
+      """
+    When iterated to list
+    Then the result should be unordered
+      | edge | josh-created->lop |
+      | edge | josh-created->ripple |
+      | edge | marko-knows->josh |