Cole-Greer commented on code in PR #3112:
URL: https://github.com/apache/tinkerpop/pull/3112#discussion_r2073916863
##########
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/language/translator/GremlinTranslatorTest.java:
##########
@@ -151,6 +151,24 @@ public static Collection<Object[]> data() {
null,
"g.with_(\"x\")",
"g.with_('x')"},
+
{"g.inject(UUID(\"f47af10b-58cc-4372-a567-0f02b2f3d479\"))",
+ null,
+ "g.inject(string0)",
+
"g.Inject<object>(Guid.Parse(\"f47af10b-58cc-4372-a567-0f02b2f3d479\"))",
+
"g.Inject(uuid.MustParse(\"f47af10b-58cc-4372-a567-0f02b2f3d479\"))",
+ null,
+ null,
+
"g.inject(\"f47af10b-58cc-4372-a567-0f02b2f3d479\")",
Review Comment:
That's correct, I didn't realize that was an existing limitation of JS.
##########
gremlin-javascript/src/main/javascript/gremlin-javascript/test/cucumber/feature-steps.js:
##########
@@ -407,6 +408,10 @@ function toDateTime(value) {
return new Date(value);
}
+function toUuid(value) {
+ return value;
Review Comment:
That's correct, I didn't realize that was an existing limitation of JS.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]