Merge pull request #153 from mataevs/exceptop

Except/Not Operator for Gremlin.
This commit is contained in:
Barak Michener 2015-02-05 20:38:19 -05:00
commit c2fab568c7
5 changed files with 238 additions and 0 deletions

View file

@ -120,6 +120,20 @@ var testQueries = []struct {
tag: "acd",
expect: []string{"D"},
},
{
message: "use Except to filter out a single vertex",
query: `
g.V("A", "B").Except(g.V("A")).All()
`,
expect: []string{"B"},
},
{
message: "use chained Except",
query: `
g.V("A", "B", "C").Except(g.V("B")).Except(g.V("C")).All()
`,
expect: []string{"A"},
},
// Morphism tests.
{