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/24 19:42:50 UTC

tinkerpop git commit: TINKERPOP-1784 Added feature tests for constant()

Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1784 0db78cbca -> 2035a6c23


TINKERPOP-1784 Added feature tests for constant()


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

Branch: refs/heads/TINKERPOP-1784
Commit: 2035a6c23252565046278466309bad236fc20d88
Parents: 0db78cb
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Oct 24 15:42:29 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Oct 24 15:42:29 2017 -0400

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


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2035a6c2/gremlin-test/features/map/Constant.feature
----------------------------------------------------------------------
diff --git a/gremlin-test/features/map/Constant.feature b/gremlin-test/features/map/Constant.feature
new file mode 100644
index 0000000..f4ff337
--- /dev/null
+++ b/gremlin-test/features/map/Constant.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 - constant()
+
+  Scenario: g_V_constantX123X
+    Given the modern graph
+    And using the parameter v1Id defined as "v[marko].id"
+    And the traversal of
+      """
+      g.V().constant(123)
+      """
+    When iterated to list
+    Then the result should be unordered
+      | d[123] |
+      | d[123] |
+      | d[123] |
+      | d[123] |
+      | d[123] |
+      | d[123] |
+
+  Scenario: g_V_chooseXhasLabelXpersonX_valuesXnameX_constantXinhumanXX
+    Given the modern graph
+    And the traversal of
+      """
+      g.V().choose(__.hasLabel("person"), __.values("name"), __.constant("inhuman"))
+      """
+    When iterated to list
+    Then the result should be unordered
+      | marko |
+      | vadas |
+      | inhuman |
+      | josh |
+      | inhuman |
+      | peter |
+