Hi,

I am running the following tests on 3.2.1-SNAPSHOT

    @Test
    public void testRepeat() {
        final TinkerGraph g = TinkerGraph.open();
        Vertex a1 = g.addVertex(T.label, "A", "name", "a1");
        Vertex b1 = g.addVertex(T.label, "B", "name", "b1");
        Vertex b2 = g.addVertex(T.label, "B", "name", "b2");
        Vertex b3 = g.addVertex(T.label, "B", "name", "b3");
        a1.addEdge("ab", b1);
        a1.addEdge("ab", b2);
        a1.addEdge("ab", b3);
        Vertex c1 = g.addVertex(T.label, "C", "name", "c1");
        Vertex c2 = g.addVertex(T.label, "C", "name", "c2");
        Vertex c3 = g.addVertex(T.label, "C", "name", "c3");
        b1.addEdge("bc", c1);
        b1.addEdge("bc", c2);
        b1.addEdge("bc", c3);

        //this passes   
        List<Vertex> vertices =
g.traversal().V().hasLabel("A").<Vertex>times(0).repeat(out("ab").out("bc")).toList();
        assertEquals(1, vertices.size());
        assertTrue(vertices.contains(a1));
   
        //this fails
        vertices =
g.traversal().V().hasLabel("A").local(__.<Vertex>times(0).repeat(out("ab").out("bc"))).toList();
        assertEquals(1, vertices.size());
        assertTrue(vertices.contains(a1));
    }

Previously on 3.2.0-incubating the test passed.

Is this a bug or a new interpretation of the while do zero times logic?

Thanks
Pieter



Reply via email to