Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1860-master 6f1b8be8e -> b7ed09907


Gremlin.Net support traversal tokens in the test suite


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

Branch: refs/heads/TINKERPOP-1860-master
Commit: b7ed09907a1c47b4c7fee49d4d75da1aa5c71efc
Parents: 6f1b8be
Author: Jorge Bay Gondra <[email protected]>
Authored: Mon Jan 8 18:17:27 2018 +0100
Committer: Jorge Bay Gondra <[email protected]>
Committed: Mon Jan 8 18:20:37 2018 +0100

----------------------------------------------------------------------
 .../test/Gremlin.Net.IntegrationTest/Gherkin/CommonSteps.cs  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/b7ed0990/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/CommonSteps.cs
----------------------------------------------------------------------
diff --git 
a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/CommonSteps.cs 
b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/CommonSteps.cs
index 9caca1f..7e793ca 100644
--- a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/CommonSteps.cs
+++ b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/CommonSteps.cs
@@ -59,7 +59,8 @@ namespace Gremlin.Net.IntegrationTest.Gherkin
                 {@"l\[(.*)\]", ToList},
                 {@"s\[(.*)\]", ToSet},
                 {@"m\[(.+)\]", ToMap},
-                {@"c\[(.+)\]", ToLambda}
+                {@"c\[(.+)\]", ToLambda},
+                {@"t\[(.+)\]", ToT}
             }.ToDictionary(kv => new Regex("^" + kv.Key + "$", 
RegexOptions.Compiled), kv => kv.Value);
 
         private static readonly IDictionary<char, Func<string, object>> 
NumericParsers =
@@ -236,6 +237,11 @@ namespace Gremlin.Net.IntegrationTest.Gherkin
             throw new IgnoreException(IgnoreReason.LambdaNotSupported);
         }
 
+        private static object ToT(string enumName, string graphName)
+        {
+            return Enum.Parse(typeof(T), 
TraversalParser.GetCsharpName(enumName));
+        }
+
         private static object ToNumber(string stringNumber, string graphName)
         {
             return NumericParsers[stringNumber[stringNumber.Length - 1]](

Reply via email to