@@ -0,0 +1,1936 @@
+package org.umlg.sqlg.test.dedup;%0A%0Aimport org.apache.tinkerpop.gremlin.process.traversal.Traversal;%0Aimport org.apache.tinkerpop.gremlin.structure.Column;%0Aimport org.apache.tinkerpop.gremlin.structure.T;%0Aimport org.apache.tinkerpop.gremlin.structure.Vertex;%0Aimport org.junit.Test;%0Aimport org.umlg.sqlg.test.BaseTest;%0A%0Aimport java.util.Collection;%0A%0Aimport static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__.both;%0Aimport static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__.select;%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0A/**%0A * Date: 2016/10/18%0A * Time: 7:49 AM%0A */%0Apublic class TinkerPopDedupTest extends BaseTest %7B%0A%0A    @Test%0A    public void testDedupFailure() %7B%0A        loadModern();%0A        this.sqlgGraph.tx().commit();%0A%0A        final Traversal%3CVertex, Collection%3CVertex%3E%3E traversal = this.sqlgGraph.traversal()%0A                .V().as(%22a%22)%0A                .repeat(both()).times(3).emit().as(%22b%22)%0A                .group()%0A                .by(select(%22a%22))%0A                .by(select(%22b%22).dedup().order().by(T.id).fold())%0A                .select(Column.values)%0A                .%3CCollection%3CVertex%3E%3Eunfold()%0A                .dedup();%0A        printTraversalForm(traversal);%0A%0A        final Collection%3CVertex%3E vertices = traversal.next();%0A        assertFalse(traversal.hasNext());%0A        assertEquals(6, vertices.size());%0A        assertTrue(vertices.contains(convertToVertex(this.sqlgGraph, %22marko%22)));%0A        assertTrue(vertices.contains(convertToVertex(this.sqlgGraph, %22vadas%22)));%0A        assertTrue(vertices.contains(convertToVertex(this.sqlgGraph, %22josh%22)));%0A        assertTrue(vertices.contains(convertToVertex(this.sqlgGraph, %22peter%22)));%0A        assertTrue(vertices.contains(convertToVertex(this.sqlgGraph, %22lop%22)));%0A        assertTrue(vertices.contains(convertToVertex(this.sqlgGraph, %22ripple%22)));%0A%0A    %7D%0A%7D%0A

add failing dedup test