tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [43/50] tinkerpop git commit: TINKERPOP-1784 Added feature tests for cyclicPath()
Date Thu, 02 Nov 2017 17:38:40 GMT
TINKERPOP-1784 Added feature tests for cyclicPath()


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

Branch: refs/heads/TINKERPOP-1784
Commit: f98a6ccedace6519abdda3811e07c7f71c592756
Parents: b5359c3
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Tue Oct 24 10:24:40 2017 -0400
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Thu Nov 2 13:37:24 2017 -0400

----------------------------------------------------------------------
 gremlin-test/features/filter/CyclicPath.feature | 50 ++++++++++++++++++++
 1 file changed, 50 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f98a6cce/gremlin-test/features/filter/CyclicPath.feature
----------------------------------------------------------------------
diff --git a/gremlin-test/features/filter/CyclicPath.feature b/gremlin-test/features/filter/CyclicPath.feature
new file mode 100644
index 0000000..d07e4ad
--- /dev/null
+++ b/gremlin-test/features/filter/CyclicPath.feature
@@ -0,0 +1,50 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+Feature: Step - cyclicPath()
+
+  Scenario: g_VX1X_outXcreatedX_inXcreatedX_cyclicPath
+    Given the modern graph
+    And using the parameter v1Id defined as "v[marko].id"
+    And the traversal of
+      """
+      g.V(v1Id).out("created").in("created").cyclicPath()
+      """
+    When iterated to list
+    Then the result should be unordered
+      | v[marko] |
+
+  Scenario: g_VX1X_outXcreatedX_inXcreatedX_cyclicPath_path
+    Given the modern graph
+    And using the parameter v1Id defined as "v[marko].id"
+    And the traversal of
+      """
+      g.V(v1Id).out("created").in("created").cyclicPath().path()
+      """
+    When iterated to list
+    Then the result should be unordered
+      | p[v[marko],v[lop],v[marko]] |
+
+  Scenario: g_VX1X_asXaX_outXcreatedX_asXbX_inXcreatedX_asXcX_cyclicPath_fromXaX_toXbX_path
+    Given the modern graph
+    And using the parameter v1Id defined as "v[marko].id"
+    And the traversal of
+      """
+      g.V(v1Id).as("a").out("created").as("b").in("created").as("c").cyclicPath().from("a").to("b").path()
+      """
+    When iterated to list
+    Then the result should be empty


Mime
View raw message