-
Notifications
You must be signed in to change notification settings - Fork 813
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,6 +147,8 @@ public abstract class HasTest extends AbstractGremlinProcessTest { | |
|
||
public abstract Traversal<Vertex, Vertex> get_g_V_hasXname_gtXmX_andXcontainingXoXXX(); | ||
|
||
public abstract Traversal<Vertex, Vertex> get_g_V_hasXp_neqXvXX(); | ||
|
||
@Test | ||
@LoadGraphWith(MODERN) | ||
public void g_V_outXcreatedX_hasXname__mapXlengthX_isXgtX3XXX_name() { | ||
|
@@ -677,6 +679,14 @@ public void g_V_hasXname_gtXmX_andXcontainingXoXXX() { | |
assertFalse(traversal.hasNext()); | ||
} | ||
|
||
@Test | ||
@LoadGraphWith(MODERN) | ||
public void g_V_hasXp_neqXvXX() { | ||
final Traversal<Vertex, Vertex> traversal = get_g_V_hasXp_neqXvXX(); | ||
printTraversalForm(traversal); | ||
assertThat(traversal.hasNext(), is(false)); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
spmallette
Author
Contributor
|
||
} | ||
|
||
public static class Traversals extends HasTest { | ||
@Override | ||
public Traversal<Edge, Edge> get_g_EX11X_outV_outE_hasXid_10X(final Object e11Id, final Object e10Id) { | ||
|
@@ -907,5 +917,10 @@ public Traversal<Vertex, Vertex> get_g_V_hasXperson_name_containingXoX_andXltXmX | |
public Traversal<Vertex, Vertex> get_g_V_hasXname_gtXmX_andXcontainingXoXXX() { | ||
return g.V().has("name", P.gt("m").and(TextP.containing("o"))); | ||
} | ||
|
||
@Override | ||
public Traversal<Vertex, Vertex> get_g_V_hasXp_neqXvXX() { | ||
return g.V().has("p", P.neq("v")); | ||
} | ||
} | ||
} |
@spmallette Excuse my ignorance but do you know why we don't expect anything from the traversal here?
I was trying to upgrade JanusGraph to use TinkerPop 3.4.8 but this test fails (here).
I see that the traversal returns 6 vertices where neither of vertices have
p
property.I thought that if the vertex don't have a property with the name
p
thanhas("p", P.neq("v"))
istrue
because there is no vertexp
with the valuev
but it looks like it now works something likehas("p").has("p", P.neq("v"))
.Do you think it is a bug on JanusGraph side or on TinkerPop side?