Merge branch 'TINKERPOP-2323' into 3.3-dev
diff --git a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/DriverRemoteConnection/GraphTraversalTests.cs b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/DriverRemoteConnection/GraphTraversalTests.cs
index c090fed..11fba84 100644
--- a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/DriverRemoteConnection/GraphTraversalTests.cs
+++ b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/DriverRemoteConnection/GraphTraversalTests.cs
@@ -46,6 +46,18 @@
}
[Fact]
+ public void g_V_Has_Count()
+ {
+ var connection = _connectionFactory.CreateRemoteConnection();
+ var g = AnonymousTraversalSource.Traversal().WithRemote(connection);
+
+ var b = Bindings.Instance;
+ var count = g.V().Has("person", "age", b.Of("x", P.Lt(30))).Count().Next();
+
+ Assert.Equal(2, count);
+ }
+
+ [Fact]
public void g_V_Count_Clone()
{
var connection = _connectionFactory.CreateRemoteConnection();
diff --git a/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py b/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
index 30828d8..643ae6e 100644
--- a/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
+++ b/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
@@ -92,6 +92,11 @@
results = g.V().filter_(__.values('age').sum_().and_(
__.max_().is_(gt(0)), __.min_().is_(gt(0)))).range_(0, 1).id_().next()
assert 1 == results
+ # #
+ # test binding in P
+ results = g.V().has('person', 'age', ('x', lt(30))).count().next()
+ assert 2 == results
+
def test_lambda_traversals(self, remote_connection):
statics.load_statics(globals())