You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by co...@apache.org on 2023/06/05 22:31:31 UTC

[tinkerpop] branch master updated (92b7e1d94f -> b656230542)

This is an automated email from the ASF dual-hosted git repository.

colegreer pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


    from 92b7e1d94f Merge branch '3.6-dev'
     add e5f819cad0 (new) (gremlin-python) improve translation (#2076)
     add f5139bc448 (new) (gremlin-python) improve translation (#2076)
     add 66d088733e Merge branch '3.5-dev' into 3.6-dev
     new b656230542 Merge branch '3.6-dev'

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CHANGELOG.asciidoc                                 |  1 +
 .../python/gremlin_python/process/translator.py    |  8 +++++---
 .../main/python/tests/process/test_translator.py   | 23 ++++++++++++++++++++++
 3 files changed, 29 insertions(+), 3 deletions(-)


[tinkerpop] 01/01: Merge branch '3.6-dev'

Posted by co...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

colegreer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit b656230542a97160e9c22ea163ad37342bed1777
Merge: 92b7e1d94f 66d088733e
Author: Cole Greer <co...@bitquilltech.com>
AuthorDate: Mon Jun 5 15:31:06 2023 -0700

    Merge branch '3.6-dev'

 CHANGELOG.asciidoc                                 |  1 +
 .../python/gremlin_python/process/translator.py    |  8 +++++---
 .../main/python/tests/process/test_translator.py   | 23 ++++++++++++++++++++++
 3 files changed, 29 insertions(+), 3 deletions(-)

diff --cc gremlin-python/src/main/python/tests/process/test_translator.py
index 61db50ada3,2afa148372..867a2ae0a8
--- a/gremlin-python/src/main/python/tests/process/test_translator.py
+++ b/gremlin-python/src/main/python/tests/process/test_translator.py
@@@ -350,13 -350,30 +350,36 @@@ class TestTraversalStrategies(object)
          # 98
          tests.append([g.withComputer().V().shortestPath().with_(ShortestPath.target, __.has('name','peter')),
                       "g.withStrategies(new VertexProgramStrategy()).V().shortestPath().with('~tinkerpop.shortestPath.target',__.has('name','peter'))"])
 +        # 99
 +        tests.append([g.V().coalesce(__.E(),__.addE('person')),
 +                     "g.V().coalesce(__.E(),__.addE('person'))"])
 +        # 100
 +        tests.append([g.inject(1).E(),
 +                     "g.inject(1).E()"])
  
+         # 99
+         tests.append([g.V().has("p1", starting_with("foo")),
+                      "g.V().has('p1',startingWith('foo'))"])
+ 
+         # 100
+         tests.append([g.V().has("p1", ending_with("foo")),
+                      "g.V().has('p1',endingWith('foo'))"])
+ 
+         # 101
+         class SuperStr(str):
+             pass
+         tests.append([g.V(SuperStr("foo_id")),
+                      "g.V('foo_id')"])
+ 
+         # 102
+         tests.append([g.V().has("p1", containing(SuperStr("foo"))),
+                      "g.V().has('p1',containing('foo'))"])
+ 
+         # 103
+         tests.append([g.V().has("p1", None),
+                      "g.V().has('p1',null)"])
+ 
+ 
          tlr = Translator().of('g')
  
          for t in range(len(tests)):