You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by kr...@apache.org on 2021/11/18 23:09:58 UTC

[tinkerpop] branch TINKERPOP-2652 updated: Additional tests

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

krlawrence pushed a commit to branch TINKERPOP-2652
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/TINKERPOP-2652 by this push:
     new ba13a94  Additional tests
ba13a94 is described below

commit ba13a945f565a6d01be036c7a242442964a4faa6
Author: Kelvin Lawrence <gf...@yahoo.com>
AuthorDate: Thu Nov 18 17:08:12 2021 -0600

    Additional tests
---
 .../test/java/org/apache/tinkerpop/gremlin/process/traversal/PTest.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/PTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/PTest.java
index 401c230..d29e666 100644
--- a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/PTest.java
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/PTest.java
@@ -165,11 +165,13 @@ public class PTest {
                     {TextP.regex("^x"), "Dallas Fort Worth", false},
                     {TextP.regex("Dal[l|x]as"), "Dallas Fort Worth", true},
                     {TextP.regex("Dal[f|x]as"), "Dallas Fort Worth", false},
+                    {TextP.regex("[a-zA-Z]+ Fort"), "Dallas Fort Worth", true},
                     {TextP.regex("[1-9]{3}"), "123-ABC-456", true},
                     {TextP.regex("[1-9]{3}-[A-Z]{3}-[1-9]{3}"), "123-ABC-456", true},
                     {TextP.regex("[1-9]{3}-[a-z]{3}-[1-9]{3}"), "123-ABC-456", false},
                     {TextP.regex("(?i)[1-9]{3}-[a-z]{3}-[1-9]{3}"), "123-ABC-456", true},
                     {TextP.regex("(?i)abc"), "123-ABC-456", true},
+                    {TextP.regex("(?i)[a-b]{3}-[1-9]{3}-[a-z]{3}"), "123-ABC-456", false},
             }));
         }