tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From florianhockm...@apache.org
Subject [1/5] tinkerpop git commit: Expanded assert in test as different graphs may traverse edges in different orders CTR [Forced Update!]
Date Fri, 31 Aug 2018 17:33:54 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1774 e16e6246f -> 1c7a3def7 (forced update)


Expanded assert in test as different graphs may traverse edges in different orders CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/793ed6d6
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/793ed6d6
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/793ed6d6

Branch: refs/heads/TINKERPOP-1774
Commit: 793ed6d6d8d3b6917dfe2faa840003e6e29e9c03
Parents: ff2d7c0
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Thu Aug 30 12:45:44 2018 -0400
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Thu Aug 30 12:45:44 2018 -0400

----------------------------------------------------------------------
 .../gremlin/process/traversal/step/branch/RepeatTest.java      | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/793ed6d6/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatTest.java
----------------------------------------------------------------------
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatTest.java
b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatTest.java
index e833acf..dc4877e 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatTest.java
@@ -50,10 +50,12 @@ import static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__.outE;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.core.Is.is;
 import static org.hamcrest.collection.IsIterableContainingInOrder.contains;
+import static org.hamcrest.core.IsEqual.equalTo;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
+import static org.hamcrest.core.AnyOf.anyOf;
 
 /**
  * @author Marko A. Rodriguez (http://markorodriguez.com)
@@ -350,7 +352,9 @@ public abstract class RepeatTest extends AbstractGremlinProcessTest {
         assertEquals(3, path.size());
         assertEquals("marko", path.get(0));
         assertEquals("josh", path.get(1));
-        assertEquals("ripple", path.get(2));
+
+        // could be lop or ripple depending on what the graph chooses to traverse first
+        assertThat(path.get(2), anyOf(equalTo("ripple"), equalTo("lop")));
 
         assertEquals(path, path_original);
     }


Mime
View raw message