Workaround gherkin parser quote issue

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

Branch: refs/heads/master
Commit: 7c9c30306bdca3bdc021b25a66c72e61b9ddf873
Parents: 9672dd0
Author: Jorge Bay Gondra <jorgebaygon...@gmail.com>
Authored: Wed Nov 22 11:45:54 2017 +0100
Committer: Jorge Bay Gondra <jorgebaygon...@gmail.com>
Committed: Thu Nov 30 10:01:21 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/7c9c3030/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 fda44b8..0011eda 100644
--- a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/CommonSteps.cs
+++ b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/CommonSteps.cs
@@ -296,6 +296,8 @@ namespace Gremlin.Net.IntegrationTest.Gherkin
 
         private static object ParseValue(string stringValue, string graphName)
         {
+            // Parser issue: quotes are not normalized
+            stringValue = stringValue.Replace("\\\"", "\"");
             Func<string, string, object> parser = null;
             string extractedValue = null;
             foreach (var kv in Parsers)

Reply via email to