vkagamlyk commented on code in PR #1827:
URL: https://github.com/apache/tinkerpop/pull/1827#discussion_r993637833
##########
gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/BytecodeTests.cs:
##########
@@ -172,5 +172,16 @@ public void
ShouldUseBindingsInsideHashSetInSourceArgument()
var arg = bytecode.SourceInstructions[0].Arguments[0] as
ISet<object>;
Assert.Equal(new Binding("setVariable", "setValue"),
arg.ToList()[1]);
}
+
+ [Fact]
+ public void ShouldIncludeStepAndSourceInstructionsForToString()
+ {
+ var bytecode = new Bytecode();
+ bytecode.AddSource("source", 1, 2);
+ bytecode.AddStep("step1", 9, 8);
+ bytecode.AddStep("step2", 0);
+
+ Assert.Equal("[[source(1, 2)], [step1(9, 8), step2(0)]]",
bytecode.ToString());
Review Comment:
```suggestion
bytecode.AddStep("step3", 0, null, 0d);
bytecode.AddStep("step4", "0), stepX(\"hello\"");
Assert.Equal("[[source(1, 2)], [step1(9, 8), step2(0), step3(0,
, 0), step4(0), stepX(\"hello\")]]",
bytecode.ToString());
```
--
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]